Could not create connection to database server. Attempted reconnect 3 times. Giving up.
2017-08-21 20:02
876 查看
做查询时没有数据出来,后台报错
报错信息:
org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Caused by: java.sql.SQLException: Access denied for user 'mcc'@'localhost' (using password: YES)
原因:
因为项目是从SVN上导下来的,配置文件里连接数据库的数据库名和密码没有改成自己本地数据库的数据库名和密码
解决:将数据库名和密码改过来就好了
(已经第二次遇到这个问题了,记录一下)
报错信息:
org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Caused by: java.sql.SQLException: Access denied for user 'mcc'@'localhost' (using password: YES)
原因:
因为项目是从SVN上导下来的,配置文件里连接数据库的数据库名和密码没有改成自己本地数据库的数据库名和密码
解决:将数据库名和密码改过来就好了
(已经第二次遇到这个问题了,记录一下)
相关文章推荐
- Could not create connection to database server. Attempted reconnect 3 times. Giving up
- Could not create connection to database server - java mysql connector
- com.gemstone.gemfire.cache.client.ServerConnectivityException: Could not create a new connection to
- 配置penfire出现A connection to the database could not be made. ...错误
- Can’t connect to MySQL server on ‘localhost’(10055) + Can not open connection + Could not execute query
- Could not find the Visual SourceSafe Internet Web Service connection information for the specified database Would you like to launch the Visual sourceSafe connection wizard?
- 错误提示: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- SFTP连接异常 Could not connect to SFTP server. Connection timed out
- Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* li
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)
- The security settings could not be applied to the database because the connection has failed w
- Could not store transport type data for Receive Location 'Recv.Loc' to config store. Primary SSO Server 'Sql-server' failed. The external credentials in the SSO database are more recent.
- FATAL:could not connect to the primary server:invalid connection option "application_name"
- openfire 安装报这个错误 A connection to the database could not be made。。。
- createdb: could not connect to database postgres: could not connect to server: No such file or directory
- Fixed -- Could not open a connection to SQL Server
- error while performing databases login with sqlserver driver:unable to create connection
- SQL2005远程登录失败的检查和解决(Could not open a connection to SQL Server)