debugsqlMinor
MySQL got signal 11 error and slave is down
Viewed 0 times
goterrorsignalslavemysqldownand
Problem
My slave server is down and mysqld unable to start. What should I do?
Below follows the error logs:
Below follows the error logs:
2014-09-26 12:51:53 14166 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2014-09-26 12:51:53 14166 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2014-09-26 12:51:54 14166 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2014-09-26 12:51:54 14166 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2014-09-26 12:51:55 14166 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11
2014-09-26 12:51:55 14166 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
(...)Solution
The reason for this ? Please note the following diagram of the InnoDB Architecture
From this diagram, you can see an insert buffer in the InnoDB Buffer Pool and a connection to the insert buffer in ibdata1. This thread is known as the Master Thread. In its current design, InnoDB can only have one Master Thread per MySQL Instance.
Apparently, given the messages above, mysqld is trying to start and another mysqld process is already running. You need to go to the OS do the following:
From this diagram, you can see an insert buffer in the InnoDB Buffer Pool and a connection to the insert buffer in ibdata1. This thread is known as the Master Thread. In its current design, InnoDB can only have one Master Thread per MySQL Instance.
Apparently, given the messages above, mysqld is trying to start and another mysqld process is already running. You need to go to the OS do the following:
- Locate the mysqld_safe process and kill it
- Locate the mysqld process and kill it
- Run
service mysql start
- If mysqld complains about the PID file already existing, delete the PID file and try to start mysql again.
Context
StackExchange Database Administrators Q#77736, answer score: 5
Revisions (0)
No revisions yet.