alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.07k stars 12.81k forks source link

nacos 1.0.1 mysql 5.7 login and query config_info #1428

Closed beastmouth closed 5 years ago

beastmouth commented 5 years ago

Issue Description

Please teach me how to solve this problem.Thanks

beastmouth commented 5 years ago

Sorry, I pulled the dev code. Version 1.0.0 is normal How do I modify the configuration in version 1.0.1

nkorange commented 5 years ago

The database configuration doesn't change from 1.0.0 to 1.0.1. So there must be some kind of bug or something. Did you try the package in 1.0.1?

pi-chow commented 5 years ago

我使用的是1.0.2版本的nacos-server,在配置单机集成mysql时候遇到了同样的问题,请问最后怎么解决的。 错误如下:org.springframework.jdbc.CannotGetJdbcConnectionException: PreparedStatementCallback; uncategorized SQLException for SQL [select ID,data_id,group_id,tenant_id,app_name,content from config_info where tenant_id=? limit 0,10]; SQL state [null]; error code [0]; Borrow prepareStatement from pool failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Borrow prepareStatement from pool failed

nkorange commented 5 years ago

我使用的是1.0.2版本的nacos-server,在配置单机集成mysql时候遇到了同样的问题,请问最后怎么解决的。 错误如下:org.springframework.jdbc.CannotGetJdbcConnectionException: PreparedStatementCallback; uncategorized SQLException for SQL [select ID,data_id,group_id,tenant_id,app_name,content from config_info where tenant_id=? limit 0,10]; SQL state [null]; error code [0]; Borrow prepareStatement from pool failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Borrow prepareStatement from pool failed

Use package in the release page please.

beastmouth commented 5 years ago

I pulled out the code according to the official document (version 1.0.1 at that time), configured MySQL for Nacos according to the document guide, and then the above problem occurred.

beastmouth commented 5 years ago

后来我使用了1.0.0 今天试着在docker上拉取了官方镜像 也是正常的