Hi all. I have a very strange issue with my server.
Every now and again the database kinda falls apart and none of my websites are working.
The solution to this is to login into the CWP (where I get the error below) and refresh the page. This kinda re-starts MySQL and everything gets back to normal.
Can anyone help please? I can't find anything useful on the internet.
Thanks in advance for taking the time.
Cheers
Warning: mysql connect(): (HY000/2002): Connection refused in /usr/locallcwpsrv/htdocs/resources/admin/include/functions.php on line 0
Warning: mysqli connect(): (HY000/2002): Connection refused in /usr/locallcwpsrv/htdocs/resources/admin/include/functions.php on line 0
Warning: mysql connect(): (HY000/2002): Connection refused in /uselocal/cwpsrv/htdocs/admin/admin/index.php on line 0
Warning: mysqli connect(): (HY000/2002): Connection refused in /uselocal/cwpsrv/htdocs/admin/admin/index.php on line 0
Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: sh /scripts/restart_cwpsry
**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db conn.php and /root/.my.cnf Warning: mysqli error() expects exactly 1 parameter, 0 given in /uselocal/cwpsrv/htdocs/admin/adminfindex.php on line 0 Could not connect: