MySQL Start error solution: Failed to open log (file './mysql-bin.000901 ', errno 2)

Source: Internet
Author: User

Ps-ef|grep MySQL
There is no MySQL process in the found, so reboot.

Service Mysqld Start Error
Viewing the error log
Tail-100/usr/local/mysql/var/iz11yohng9az.err (host name. Err)

180223 15:31:51 Mysqld_safe starting mysqld daemon with databases from/usr/local/mysql/var180223 15:31:51 innodb:the Inn ODB memory Heap is disabled180223 15:31:51 innodb:mutexes and rw_locks use GCC atomic builtins180223 15:31:51 innodb:com Pressed tables use zlib 1.2.3180223 15:31:51 innodb:initializing buffer pool, size = 16.0m180223 15:31:51 innodb:complet Ed initialization of buffer pool180223 15:31:51 innodb:highest supported file format is barracuda.180223 15:31:51 InnoDB : Waiting for the background threads to start180223 15:31:52 innodb:5.5.42 started; Log sequence number 106443096/usr/local/mysql/bin/mysqld:file './mysql-bin.000901 ' not Found (errcode:2) 180223 15:31:52 [ERROR] Failed to open log (file './mysql-bin.000901 ', errno 2) 180223 15:31:52 [ERROR] Could not open log file180 223 15:31:52 [ERROR] Can ' t init tc log180223 15:31:52 [ERROR] Aborting180223 15:31:52 innodb:starting shutdown ... 180223 15:31:53 Innodb:shutdown completed; Log sequence Number 106443096180223 15:31:53 [Note]/usr/local/mysql/bin/mysqld:shutdown complete180223 15:31:53 mysqld_safe mysqld from PID File/usr/lo Cal/mysql/var/iz11yohng9az.pid Ended

You can see the error message that appears in the error log: Failed to open log (file './mysql-bin.000901 ', errno 2)

So try the solution as follows:

cd /usr/local/mysql/var/cp mysql-bin.index mysql-bin.index.bak(备份)vi mysql-bin.index删除其中的mysql-bin.000901

Then reboot, MySQL starts successfully

MySQL Start error solution: Failed to open log (file './mysql-bin.000901 ', errno 2)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.