Author Topic: Problem mysql  (Read 370 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Problem mysql
« on: March 16, 2019, 10:16:28 AM »
Good morning
All of a sudden the site is down, I try to access the CentOS WebPanel and it gives me this error:

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

Offline
*
Re: Problem mysql
« Reply #1 on: March 16, 2019, 08:16:52 PM »
Is your database up and running?

Offline
***
Re: Problem mysql
« Reply #2 on: March 16, 2019, 10:18:38 PM »
1) the correct script for execution is
Code: [Select]
# 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