Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持show all tables语法 #3590

Open
yejr opened this issue Jan 11, 2023 · 3 comments
Open

不支持show all tables语法 #3590

yejr opened this issue Jan 11, 2023 · 3 comments
Labels
community issue from community

Comments

@yejr
Copy link

yejr commented Jan 11, 2023

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
@PanternBao
Copy link
Member

please join QQ group 669663113 to communicate

@yanhuqing666
Copy link
Member

yanhuqing666 commented Jan 11, 2023

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

@yanhuqing666 yanhuqing666 added the community issue from community label Jan 12, 2023
@PanternBao
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community issue from community
Projects
None yet
Development

No branches or pull requests

3 participants