我无法连接到mysql服务器获取错误
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
我查了一下日志: -
InnoDB: Apply batch completed
130820 5:19:41 InnoDB: Error: the OS said file flush did not succeed
130820 5:19:41 InnoDB: Operating system error number 5 in a file operation.
InnoDB: Error number 5 means 'Input/output error'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html
InnoDB: File operation call: 'flush'.
InnoDB: Cannot continue operation.
130820 05:19:42 mysqld ended
由于这无法重启或启动mysql
[root@OPX-VPC-DB-Report-Slave-2 ~]# service mysqld status
mysqld is stopped
[root@OPX-VPC-DB-Report-Slave-2 ~]# /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
[root@OPX-VPC-DB-Report-Slave-2 ~]#
我在互联网上搜索了很多但没找到任何解决方案
我已配置RAID 0和mount / mnt目录以及symlinc
# ln -s /mnt/mysql_data/ /usr/lib/mysql
# ln -s /mnt/mysql_run /var/run/mysql
昨天有一个复制崩溃,所以我跑了
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
再次复制很好
请解决我的问题
我的配置详情是:“ -
Fedora 6 and mysql 5.0.2
Please help this is my production DB
答案 0 :(得分:0)
这似乎是一个权限问题,尝试通过使用setenforce 0禁用selinuza,然后重新启动mysql服务,还检查mysql是否在已安装的设备上具有正确的权限(假设您以root用户身份或sudo用户挂载,mysql无法访问)