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

sharding-proxy hang-up when entering "use sharding-db" instruction #992

Closed
cherrylzhao opened this issue Jul 9, 2018 · 2 comments
Closed

Comments

@cherrylzhao
Copy link
Member

For English only, other languages we will close it directly.

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Sphere do you using?

sharding-proxy 3.0.0.M2-SNAPSHOT

Expected behavior

"use sharing_db" instructions can return successfully.

Actual behavior

suspended in command-line

Steps to reproduce the behavior

  • mysql -h127.0.0.1 -P3307 -uroot -proot
  • use sharding_db

Please provide the reproduce example codes (such as a github link).

@tristaZero
Copy link
Contributor

When the DataSourceName configured is different with the actual database name, the statement 'SHOW COLUMNS FROM tbl_name [FROM db_name] ' will get error. This is because the sharding SQLBuilder can not can the actual database name to replace the defualt database name.

So, this enhancement will analyze JDBC Url to get the actual database name to replace the defualt database name.

@tristaZero
Copy link
Contributor

fixed in Support authorization parsing for Sharding core #996.

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

No branches or pull requests

3 participants