How To Fix Mysql Error Db::__construct Too Many Connections
- Forums
- MYSQL
- How To Fix Mysql Error Db::__construct Too Many Connections
i will explain briefly on this post what i did to fix a problem with my server when all my websites were not working and i was getting this error DB::__construct Too many connections [4176], Last Updated: Mon Jun 24, 2024
poorboy
Wed Dec 31, 1969
0 Comments
509 Visits
are you getting this error:
DB::__construct Too many connections
if so, this is what my problem was, i had ran out of disk space on my server
the cause was the error logs i used these commands to troubleshoot and find a way to fix the issue
cd /var
du -h --max-depth=1
OUTPUT:
200G ./www
4.0K ./opt
63M ./cache
4.0K ./cvs
20K ./db
12G ./lib
4.0K ./nis
324K ./vmail
4.0K ./preserve
6.2G ./named
4.0K ./games
4.0K ./ftp
16G ./log
as you can see from this list, the www directory and the log were high,
so to fix it , you just have to do some cleanup