Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: sakti on February 08, 2021, 12:46:29 AM

Title: Help my database folder gone
Post by: sakti on February 08, 2021, 12:46:29 AM
Hi guys, please help me,
i try to edit /root/.my.cnf
after that, i cant access my root panel and its say error :

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:


pls help, my website also cant access database. i try to restart centos, but cant fix it.
Title: Re: Help my database folder gone
Post by: Igor S. on February 08, 2021, 11:20:40 AM
Try to use the script /scripts/mysql_pwd_reset
Title: Re: Help my database folder gone
Post by: sakti on February 09, 2021, 07:46:43 AM
Try to use the script /scripts/mysql_pwd_reset
i reinstall my cwp, and i have more problem sir. can u please help me here http://forum.centos-webpanel.com/index.php?topic=10228.0