mysql process cannot be stopped

前端 未结 7 453
太阳男子
太阳男子 2021-02-01 16:17

I have recently installed 5.5.28-29.2 Percona Server (GPL), Release 29.2 in a Ubuntu 12.04 OS Desktop. I have tried to stop the server using different methods:

-         


        
7条回答
  •  无人及你
    2021-02-01 16:51

    For those looking at this years after the fact, I had a similar issue and just solved it.

    Seems there was a second init script called orig_mysql.conf that existed in the /etc/init directory along with the mysql.conf file. This caused upstart to start two instances and apparently it got confused when one was ended. As such a continuous respawning took place.

    My solution:

    1. Stop mysql via upstart if possible: service mysql stop
    2. REMOVE one of the conf files (I removed /etc/init/orig_mysql.conf). Then restart init using: telinit u
    3. Kill off any remaining mysqld processes manually.

    Once you confirm you have no mysqld processes running and that they are not respawning any longer, restart mysql with service mysql start.

    Hope this helps someone. It took me two years to solve this.

提交回复
热议问题