New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Problem mysql

Started by stefanop039, March 16, 2019, 10:16:28 AM

Previous topic - Next topic

stefanop039

Good morning
All of a sudden the site is down, I try to access the CentOS WebPanel and it gives me this error:

Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/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_cwpsrv

** 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 /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:



I tried to run sh / scripts / restart_cwpsrv but unfortunately nothing happens

I restarted vps I tried service cwpsrv restart but ninte, the file functions.php is encrypted

How can I solve it?

Thanks for your attention

tokar86a

Is your database up and running?

Netino

1) the correct script for execution is

# sh /scripts/restart_cwpsrv

not "sh / scripts / restart_cwpsrv".

2) Did you check your MySQL root password in: "/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php" and "/root/.my.cnf" files, if match..??

Regards,
Netino