1:今天打算测试1.6的新版本的ddl的控制权限的问题,结果配置好
schema.xml
和
server.xml
启动之后再链接mycat
[root@db-server mycat]# mysql -uhanye -proot12300 -h127.0.0.1 -P8066
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.29-mycat-1.6-RELEASE-20161028204710 MyCat Server
MySQL [(none)]> show databases;
+----------+
| DATABASE |
+----------+
| qiaomai |
+----------+
1 row in set (0.00 sec)
MySQL [(none)]> use qiaomai
Database changed
MySQL [qiaomai]> show tables;
ERROR 3009 (HY000): java.lang.IllegalArgumentException: Invalid DataSource:0
2:处理方式很简单
[root@db-server mycat]# mysql -uhanye -proot12300 -P8066
即可
3:如果提示如下之类的错误
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=64M; support was removed in 8.0
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.opencloudb.MycatStartup.main(MycatStartup.java:46)
那就是你的xml配置 有问题
阅读(10948) | 评论(0) | 转发(0) |