Author Topic: MySQL issue  (Read 3798 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
MySQL issue
« on: July 27, 2019, 10:55:02 AM »
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

Code: [Select]
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:

Offline
*
Re: MySQL issue
« Reply #1 on: July 27, 2019, 11:03:48 AM »
make sure your root directory is not full