Author Topic: mysqli_connect() ERROR on CWP Panel  (Read 2245 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
mysqli_connect() ERROR on CWP Panel
« on: July 15, 2019, 03:18:50 AM »
I changed my MySQL password. But when I saw that it caused the error, I resetted my password with the script. I tried / scripts / restart_cwpsrv and / scripts / reload_cwpsrv. Nothing worked. I'm still getting this error. I cleared the cache and cookies in the browser.

Code: [Select]
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) 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:
You've felt it your entire life, that there's something wrong with the world. You don't know what it is, but it's there, like a splinter in your mind, driving you mad.

Offline
*****
Re: mysqli_connect() ERROR on CWP Panel
« Reply #1 on: July 16, 2019, 08:25:55 AM »
you shouldn't change mysql root password manually instead you need to use the script.
Code: [Select]
sh /scripts/mysql_pwd_reset