2

我无法连接到 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 并挂载 /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 
4

1 回答 1

0

这似乎是一个权限问题,尝试使用 setenforce 0 禁用 selinuza,然后重新启动 mysql 服务,并检查 mysql 在已安装的设备上是否具有正确的权限(假设您以 root 或 mysql 无法访问的 sudo 用户安装)

于 2013-08-20T05:38:42.990 回答