mycat链接mysql提示ERROR 3009 (HY000): java.lang.IllegalArgumentExceptio解决方式 2017-02-03 17:59:42

分类: 系统运维

1:今天打算测试1.6的新版本的ddl的控制权限的问题,结果配置好schema.xml
mycat链接mysql提示ERROR 3009 (HY000): java.lang.Ille_第1张图片

server.xml

    mycat链接mysql提示ERROR 3009 (HY000): java.lang.Ille_第2张图片   

启动之后再链接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配置 有问题