mysql異常'Could not create connection to database server. Attempted reconnect 3 times. Giving up. too

問題: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參數如下

    在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章