当前位置:Gxlcms > 数据库问题 > create connection error, url: jdbc:mysql://**ip**:3306/*?errorCode 1045, state 28000

create connection error, url: jdbc:mysql://**ip**:3306/*?errorCode 1045, state 28000

时间:2021-07-01 10:21:17 帮助过:20人阅读

init datasource error 2 The last packet sent successfully to the server was 0 milliseconds ago. 3 The driver has not received any packets from the server.

回来查资料,在项目的配置文件mysql.url后面添加参数

&autoReconnect=true&failOverReadOnly=false&maxReconnects=10

再运行就可以了,没有报错。不过还是没有找到原因。

create connection error, url: jdbc:mysql://**ip**:3306/*?errorCode 1045, state 28000

标签:max   mys   账号   connect   ado   readonly   reconnect   error   love   

人气教程排行