Author Topic: I have a CWP error and need to fix it mysqli_connect  (Read 7241 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
I have a CWP error and need to fix it mysqli_connect
« on: January 16, 2019, 05:30:16 AM »
I have this error. Can anybody help me with

Code: [Select]
Warning: mysqli_connect(): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: mysqli_connect(): (HY000/2002): No such file or directory 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:

Offline
***
Re: I have a CWP error and need to fix it mysqli_connect
« Reply #1 on: January 17, 2019, 02:34:36 AM »
Let's begin from the beginning.

Did you already attempt to restart CentOS Web Panel with the "sh /scripts/restart_cwpsrv" command?

Did you already checked in the files '/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php' and '/root/.my.cnf' if your mysql root password are the same..??

Did you already attempt to restart the mariadb/mysql server..?

What is your mariadb/mysql version..?

What is the context? Your server was working normally and suddenly it just stopped working alone ..? What happened..??

Regards,
Netino
« Last Edit: January 17, 2019, 02:41:50 AM by Netino »