You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/08/10 11:09:38 UTC

[GitHub] [shardingsphere] qiaojiang2 opened a new issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

qiaojiang2 opened a new issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764


   ## Bug Report
   
   
   Exception in thread "main" org.apache.shardingsphere.underlying.common.exception.ShardingSphereException: Can not build data source, name is `ds_0`.
   	at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.createDataSources(JDBCBackendDataSource.java:74)
   	at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.<init>(JDBCBackendDataSource.java:62)
   	at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchema.<init>(LogicSchema.java:54)
   	at org.apache.shardingsphere.shardingproxy.backend.schema.impl.ShardingSchema.<init>(ShardingSchema.java:77)
   	at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemaFactory.newInstance(LogicSchemaFactory.java:56)
   	at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas.initSchemas(LogicSchemas.java:102)
   	at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas.init(LogicSchemas.java:91)
   	at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas.init(LogicSchemas.java:75)
   	at org.apache.shardingsphere.shardingproxy.Bootstrap.startWithoutRegistryCenter(Bootstrap.java:123)
   	at org.apache.shardingsphere.shardingproxy.Bootstrap.main(Bootstrap.java:85)
   Caused by: org.apache.shardingsphere.underlying.common.exception.ShardingSphereException: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath.
   	at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCRawBackendDataSourceFactory.validateDriverClassName(JDBCRawBackendDataSourceFactory.java:81)
   	at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCRawBackendDataSourceFactory.build(JDBCRawBackendDataSourceFactory.java:51)
   	at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.createDataSources(JDBCBackendDataSource.java:70)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] Lucas-307 commented on issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

Posted by GitBox <gi...@apache.org>.
Lucas-307 commented on issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764#issuecomment-671301776


   `com.mysql.jdbc.Driver` is in `mysql-connector-java-xxx.jar` you should download and put into your classpath.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu closed issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] Lucas-307 edited a comment on issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

Posted by GitBox <gi...@apache.org>.
Lucas-307 edited a comment on issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764#issuecomment-671301776


   `com.mysql.jdbc.Driver` is in `mysql-connector-java-xxx.jar` you should download and put it into Sharding-Proxy's classpath.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] Lucas-307 edited a comment on issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

Posted by GitBox <gi...@apache.org>.
Lucas-307 edited a comment on issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764#issuecomment-671301776


   `com.mysql.jdbc.Driver` is in `mysql-connector-java-xxx.jar` you should download and put it into your classpath.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] qiaojiang2 commented on issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

Posted by GitBox <gi...@apache.org>.
qiaojiang2 commented on issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764#issuecomment-671675279


   "If the backend database is PostgreSQL, there’s no need for additional dependencies.
   
   If the backend database is MySQL, download MySQL Connector/J and decompress, then copy mysql-connector-java-5.1.47.jar to %SHARDINGSPHERE_PROXY_HOME%/lib directory."
   
   Why not support Mysql directly?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu commented on issue #6764: Cannot load JDBC driver class `com.mysql.jdbc.Driver`, make sure it in Sharding-Proxy's classpath

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #6764:
URL: https://github.com/apache/shardingsphere/issues/6764#issuecomment-671300460


   Just make sure `com.mysql.jdbc.Driver` in Sharding-Proxy's classpath


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org