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

[Bug] java connect arana error. #449

Closed
dongzl opened this issue Oct 9, 2022 · 3 comments · Fixed by #450
Closed

[Bug] java connect arana error. #449

dongzl opened this issue Oct 9, 2022 · 3 comments · Fixed by #450
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dongzl
Copy link
Contributor

dongzl commented Oct 9, 2022

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Exception in thread "main" java.sql.SQLException: Unknown system variable 'query_cache_size'
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
	at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828)
	at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:448)
	at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241)
	at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:247)
	at arana.TestInsert.main(TestInsert.java:17)
2022-10-09T18:56:23.402+0800    ERROR   mysql/execute_handle.go:107     get dataset error 7: Unknown system variable 'query_cache_size' (errno 1193) (sqlstate HY000)
github.com/arana-db/arana/pkg/mysql.(*Listener).handleQuery
        /Users/dongzonglei/source_code/Github/arana/pkg/mysql/execute_handle.go:107
github.com/arana-db/arana/pkg/mysql.(*Listener).ExecuteCommand
        /Users/dongzonglei/source_code/Github/arana/pkg/mysql/server.go:555
github.com/arana-db/arana/pkg/mysql.(*Listener).handle
        /Users/dongzonglei/source_code/Github/arana/pkg/mysql/server.go:207
2022/10/09 18:56:28 Post "http://localhost:14268/api/traces": dial tcp 127.0.0.1:14268: connect: connection refused
@dongzl dongzl added the bug Something isn't working label Oct 9, 2022
@dongzl dongzl added this to the 0.2.0 milestone Oct 9, 2022
@dongzl
Copy link
Contributor Author

dongzl commented Oct 9, 2022

ref #314

@jjeffcaii jjeffcaii self-assigned this Oct 9, 2022
@jjeffcaii
Copy link
Contributor

Which version of mysql-connector-java?

@dongzl
Copy link
Contributor Author

dongzl commented Oct 9, 2022

Which version of mysql-connector-java?

The same error:

<dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.30</version>
        </dependency>
<dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.47</version>
        </dependency>

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

Successfully merging a pull request may close this issue.

2 participants