今天在查看binlog日志时,总提示not found,但文件路径肯定是对的
错误提示如下:
- [bzuo@devdb7 ~]$ mysqlbinlog /u01/run/mysqld/mysqld-bin.000022
- /*!40019 SET @@session.max_insert_delayed_threads=0*/;
- /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
- DELIMITER /*!*/;
- mysqlbinlog: File '/u01/run/mysqld/mysqld-bin.000022' not found (Errcode: 13)
- DELIMITER ;
- # End of log file
- ROLLBACK /* added by mysqlbinlog */;
- /*!50003 SET ;
经过一番检查,原来是权限不对,
- -rw-rw---- 1 mysql mysql 62603 Feb 11 19:59 mysqld-bin.000022
- -rw-rw---- 1 mysql mysql 126 Feb 12 15:19 mysqld-bin.000023
sudo之后就正常了。它提示我没有读权限多好,直接整个not found太不厚道了。
阅读(7689) | 评论(2) | 转发(0) |