Author Topic: mysql error when server resets  (Read 5242 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
mysql error when server resets
« on: January 30, 2018, 05:06:15 AM »
message: (Password reset)

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:

Re: mysql error when server resets
« Reply #1 on: January 30, 2018, 05:31:42 AM »
You would usually get such warning when the SQL password was changed manually. There is script for resetting it and getting the 2 files (/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf) automatically updated as well

http://forum.centos-webpanel.com/suggestions/implement-panel-option-for-changing-mysql-root-password/msg15415/?topicseen#msg15415

Offline
*
Re: mysql error when server resets
« Reply #2 on: June 14, 2021, 06:51:28 PM »
message: (Password reset)

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:


Hi,

I'm facing the same issue. I hope you have already resolved the issue. Can you please help me out to resolve mine too?