Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: stefanop039 on March 16, 2019, 10:16:28 AM

Title: Problem mysql
Post by: stefanop039 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
Title: Re: Problem mysql
Post by: tokar86a on March 16, 2019, 08:16:52 PM
Is your database up and running?
Title: Re: Problem mysql
Post by: Netino 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