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

How can i connect radon with jdbc? #30

Closed
duchaoqun opened this issue May 17, 2018 · 7 comments
Closed

How can i connect radon with jdbc? #30

duchaoqun opened this issue May 17, 2018 · 7 comments
Assignees
Labels
type: bug Something isn't working

Comments

@duchaoqun
Copy link

As it said in title.

@BohuTANG
Copy link
Contributor

Hi,

Using jdbc driver connect to Radon same as to MySQL.
If any problem, please let us know.

@duchaoqun
Copy link
Author

Connect with jdbc , Why print the following log?

MySQL
5.7-Radon-1.0
MySQL Connector Java
mysql-connector-java-5.1.42 ( Revision: 1f61b0b0270d9844b006572ba4e77f19c0f230d4 )

2018/05/18 13:47:01.955564 query.go:240: [WARNING] proxy.query.set.query:SET net_write_timeout=600
2018/05/18 13:47:01.982928 query.go:240: [WARNING] proxy.query.set.query:SET net_write_timeout=60
2018/05/18 13:47:01.984433 query.go:240: [WARNING] proxy.query.set.query:SET character_set_results = NULL
2018/05/18 13:47:01.985481 query.go:240: [WARNING] proxy.query.set.query:SET autocommit=1
2018/05/18 13:47:01.988369 query.go:240: [WARNING] proxy.query.set.query:SET autocommit=1
2018/05/18 13:47:02.133830 router.go:169: [ERROR] router.can.not.find.table[dual]
2018/05/18 13:47:02.133889 query.go:209: [ERROR] proxy.select[select database()].from.session[37].error:Table 'dual' doesn't exist (errno 1146) (sqlstate 42S02)
2018/05/18 13:47:02.133930 server.go:204: [ERROR] server.handle.query.from.session[37].error:Table 'dual' doesn't exist (errno 1146) (sqlstate 42S02).query[select database()]
2018/05/18 13:47:02.198666 query.go:149: [ERROR] proxy.show.unsupported[SHOW COLLATION].from.session[37]
2018/05/18 13:47:02.198734 server.go:204: [ERROR] server.handle.query.from.session[37].error:unsupported.query:SHOW COLLATION (errno 1105) (sqlstate HY000).query[SHOW COLLATION]

@BohuTANG
Copy link
Contributor

Hello,

Please try the lastest version(Connector/J 8.0.11)(we will look up the issue on this version)

@BohuTANG BohuTANG added the type: bug Something isn't working label May 18, 2018
@hustjieke
Copy link
Contributor

@duchaoqun
Hi~I had try to connect radon with JDBC, and didn't recurrent the problem you met, the connector I used is mysql-connector-java-8.0.11.tar, can you provide more details about the environment you tested?

@hustjieke
Copy link
Contributor

@duchaoqun We confirmed this is a bug after debug, but it does not affect the use of radon connect with JDBC, we'll fix it as soon as possible.

@andyli029
Copy link
Contributor

mysql> select @@version_comment limit 1;
ERROR 1046 (3D000): No database selected

log:
2018/05/30 17:52:57.504176 query.go:209: [ERROR] proxy.select[select @@version_comment limit 1].from.session[2].error:No database selected (errno 1046) (sqlstate 3D000)
2018/05/30 17:52:57.504238 server.go:204: [ERROR] server.handle.query.from.session[2].error:No database selected (errno 1046) (sqlstate 3D000).query[select @@version_comment limit 1]

is similar to cmd: select 1;

@hustjieke
Copy link
Contributor

@duchaoqun
The error log has being fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants