Check out what's happening:
What happens is that mysqld process is running; however it no longer accepts new connections to it. I try to restart it and I have to kill the process manually in order to start mysqld again.
It wouldn't be a (big) problem for me if it is not restarting gracefully, but the bigger problem is that it hangs (stops accepting new connections without obvious reason) for some reason like once per two days or something like that. Actually there's no pattern - it happens without obvious reason. The rows prior to the log above are the following:
As you can see it's from two days ago so it shouldn't be related to it.
Any thoughts why MySQL won't stop gracefully?
Code:
2015-03-16 11:50:06 86503 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
2015-03-16 11:50:28 86503 [Note] Giving 41 client threads a chance to die gracefully
2015-03-16 11:50:28 86503 [Note] Event Scheduler: Purging the queue. 0 events
2015-03-16 11:50:28 86503 [Note] Shutting down slave threads
150316 11:50:28 mysqld_safe A mysqld process already exists
2015-03-16 11:50:31 86503 [Note] Forcefully disconnecting 0 remaining clients
2015-03-16 11:50:31 86503 [Note] Binlog end
150316 11:50:46 mysqld_safe A mysqld process already exists
What happens is that mysqld process is running; however it no longer accepts new connections to it. I try to restart it and I have to kill the process manually in order to start mysqld again.
It wouldn't be a (big) problem for me if it is not restarting gracefully, but the bigger problem is that it hangs (stops accepting new connections without obvious reason) for some reason like once per two days or something like that. Actually there's no pattern - it happens without obvious reason. The rows prior to the log above are the following:
Code:
2015-03-14 19:54:13 86503 [ERROR] /usr/local/mysql/bin/mysqld: Table './onlinebul_site/jos_session' is marked as crashed and should be repaired
2015-03-14 19:54:13 86503 [ERROR] /usr/local/mysql/bin/mysqld: Table './onlinebul_site/jos_session' is marked as crashed and should be repaired
2015-03-14 19:54:20 86503 [Note] Found 5848 of 5867 rows when repairing './onlinebul_site/jos_session'
As you can see it's from two days ago so it shouldn't be related to it.
Any thoughts why MySQL won't stop gracefully?
Last edited: