actiontech/dble

不支持show all tables语法

yejr opened this issue · 3 comments

yejr commented
docker network create -o "com.docker.network.bridge.name"="dble-net" --subnet 172.18.0.0/16 dble-net

docker run --name backend-mysql1 --ip 172.18.0.2 -e MYSQL_ROOT_PASSWORD=123456 -p 33061:3306 --network=dble-net -d mysql:5.7 --server-id=1

docker run --name backend-mysql2 --ip 172.18.0.3 -e MYSQL_ROOT_PASSWORD=123456 -p 33062:3306 --network=dble-net -d mysql:5.7 --server-id=2

sleep 30

docker run -d -i -t --name dble-server --ip 172.18.0.5 -p 8066:8066 -p 9066:9066 --network=dble-net actiontech/dble:latest

执行SQL报错:

# 连接dble
mysql -P8066 -u root -p123456 -h 127.0.0.1

# 执行sql
mysql> root@[testdb]>show tables;
+----------------------+
| Tables_in_testdb     |
+----------------------+
| tb_child1            |
...
| tb_uneven_hash       |
+----------------------+
21 rows in set (0.00 sec)

# 执行show all tables报错
mysql> show all tables;
ERROR 1064 (HY000): druid not support sql syntax, the reason is syntax error: syntax error, error in :' all tables', expect CREATE, actual null, pos 15, line 1, column 10, token IDENTIFIER tables

please join QQ group 669663113 to communicate

“druid not support sql syntax”...so can not support for now, but I remember it worked good and I will check the problem

The root user may configure blacklist in user.xml, you can remove blacklist to retry.