Control Web Panel

WebPanel => MySQL => Topic started by: xdiag on December 12, 2015, 07:01:45 PM

Title: MySQL error when trying to update
Post by: xdiag on December 12, 2015, 07:01:45 PM
A bad english please bakamy the first defect

I met such questions when trying to update MySQL , please help

Code: [Select]
Centos web panel error message
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


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

Code: [Select]
He gave up trying to start from ssh error

[root@server ~]# mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib                                                                             /mysql/mysql.sock' (2)
Title: Re: MySQL error when trying to update
Post by: Parricull on December 13, 2015, 11:23:31 AM
I had asimilar issue turned out my server sysytem files were getting full, check you disk usage with the command below

Code: [Select]
df -h

Then if thats the case delete old files such has /tmp and /var/logs

You could use the below command to list by size.

Code: [Select]
# du -x / |sort -rnb |more