本文主要是介绍Could not create connection to database server.Attempted reconnect 3 times. Giving up.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Connection to @localhost failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
在连接字符串后面加上?serverTimezone=UTC
其中UTC是统一标准世界时间。
添加这个时区后
Cannot connect to a database (不能连接到数据库)
Step 1. Check your network settings
Step 2. Check your connection properties
Step 3. Check the driver version
Step 4. Check if the connection with SSH or SSL is required
这篇关于Could not create connection to database server.Attempted reconnect 3 times. Giving up.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!