問題:Could not create connection to database server. Attempted reconnect 3 times. Giving up. too many connections
原因:mysql8.0.X默認配置爲最大連接數151,當數據連接數超過151個,出現如上問題
解決方法:
-
在mysql安裝目錄找到my.ini文件
-
修改max connections參數如下
在mysql安裝目錄找到my.ini文件
修改max connections參數如下