Author Topic: MySQL error when trying to update  (Read 7179 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
MySQL error when trying to update
« 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)

Offline
*
Re: MySQL error when trying to update
« Reply #1 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