Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

another mysqld process using the same InnoDB data or log files

Tags:

c++

mysql

I have a mysql server running on linux system. i'm already running one c++ prog which is building up the data base with current date and time stamp. I'm trying to run another process in c++ which is accessing different db but i'm having error.

error is as below:

InnoDB: check that you do not have another mysqld process
InnoDB: using the same InnoDB data or log files
InnoDB: Unable to lock /var/lib/mysql/ibdata1, error: 11

please can somebody explain whats going wrong in here

thanks

like image 857
rasmalai Avatar asked Oct 25 '25 16:10

rasmalai


1 Answers

I was solved this problem by kill mysqld process

To kill all mysqld process on Linux :

# killall mysqld mysqld_safe

Wait for 10 seconds atleast so that it shut down cleanly.

Now, run this command to check whether still there are some mysqld process remained or not ?

# ps aux | grep mysqld

If you still able to see more than run this command :

killall -9 mysqld mysqld_safe

This will kill all mysqld processes.

like image 57
AnasSafi Avatar answered Oct 28 '25 07:10

AnasSafi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!