生产中遇到类似问题,就仔细查阅相关binlog文件的详情,这里是由于不能打开,原因是昨天下午我在做密码切换的时候直接使用root权限来修改相关数据了,导致发生了权限变更,今天早上启动的时候出现此类错误;如:
130125 09:28:20 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
130125 9:28:20 InnoDB: The InnoDB memory heap is disabled
130125 9:28:20 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
130125 9:28:20 InnoDB: Compressed tables use zlib 1.2.3
130125 9:28:20 InnoDB: Initializing buffer pool, size = 128.0M
130125 9:28:20 InnoDB: Completed initialization of buffer pool
130125 9:28:20 InnoDB: highest supported file format is Barracuda.
130125 9:28:20 InnoDB: Waiting for the background threads to start
130125 9:28:21 InnoDB: 1.1.7 started; log sequence number 893293355
/usr/local/mysql/bin/mysqld: File './mysql-bin.000009' not found (Errcode: 13)
130125 9:28:21 [ERROR] Failed to