Could not select database root_cwp

Started by luanpham92, May 02, 2016, 06:47:29 AM

Previous topic - Next topic

luanpham92

Warning: Error while sending SET_OPTION packet. PID=18961 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 5
MySQL server has gone away
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 5

Sandeep

Elaborate more about your problem. What modifications you did before getting this error ?

luanpham92

How you doing
"Warning: mysql_connect(): No such file or directory in /usr/local/cwpsrv/htdocs/admin/index.php(1) : eval()'d code(1) : eval()'d code on line 2
mysqld (pid 16643) is running...

Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: service cwpsrv restart

**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf

Could not connect: No such file or directory"

Sandeep

#3
mysql version?

you need to reset the mysql password

open ssh/terminal

type in this commands :
cd /usr/local/cwpsrv/htdocs/resources/scripts

sh mysql_pwd_reset

luanpham92


a time it still fails
Any other measures
"Warning: mysql_connect(): No such file or directory in /usr/local/cwpsrv/htdocs/admin/index.php(1) : eval()'d code(1) : eval()'d code on line 2
mysqld (pid 19729) is running...

Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: service cwpsrv restart

**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf

Could not connect: No such file or directory"

Sandeep

#5
post your server config and mysql version


Run the command in ssh and post the result output here
curl http://dl1.centos-webpanel.com/files/s_scripts/sinfo.sh|sh

luanpham92


I need to do what
and where to send the information about
I am not very clear to your needs
--- Thanks you !

Sandeep

Mysql 5.1 , 5.5 , 5.6 or 5.7 ???

you can post here

luanpham92

I use version:
MySQL version: 5.5.49

Sandeep

you need to reset root password of mysql

or upgrade to mariadb

luanpham92


Access over 150 people
will fail
That is the only way to overcome
Changes can not pass mysql

luanpham92

Errors in CWP

"Warning: Error while sending SET_OPTION packet. PID=12224 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 5
MySQL server has gone away
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 5"

myql pass conversion error
"error 2002: can't coonect to local My SQL server through socket '/var/lib/mysql/mysql.sock' (2)"

ogimedia


MySQL info:
mysql  Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1

this is my version

not works
Stopping mysqld:  [  OK  ]
Starting mysqld:  [  OK  ]

Warning: Error while sending QUERY packet. PID=31185 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
MySQL server has gone away
Warning: [obfuscated]() expects parameter 1 to be resource, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

i gived the  command from up but nothing

same problem

Sandeep

what is the error log can you check and post it here ?

ogimedia

i get mysql restart or stop and cwp not work fine is going down many times, i reinstaled it and when i give restart to the server i get the errors  send me on my mail or private a number for wahatsapp or skype or if u talk on fb ...

i like verry much cwp and i dont wanna to put another panel.


Warning: Error while sending QUERY packet. PID=21747 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
MySQL server has gone away
Warning: [obfuscated]() expects parameter 1 to be resource, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
Top 5 Process [live monitor]

watch this error

when i tried to go on cwp

Warning: [obfuscated](): No such file or directory in /usr/local/cwpsrv/htdocs/admin/index.php on line 0
mysqld (pid 23779) is running...

Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: service cwpsrv restart

**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf

Could not connect: No such file or directory