How to stop mysqld

前端 未结 18 850
清酒与你
清酒与你 2020-12-04 04:32

To find out the start command for mysqld (using a mac) I can do:

ps aux|grep mysql

I get the following output, which allows me to start mys

相关标签:
18条回答
  • 2020-12-04 05:20

    There is an alternative way of just killing the daemon process by calling

    kill -TERM PID
    

    where PID is the value stored in the file mysqld.pid or the mysqld process id which can be obtained by issuing the command ps -a | grep mysqld.

    0 讨论(0)
  • 2020-12-04 05:20

    for Binary installer use this:

    to stop:

    sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
    

    to start:

    sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
    

    to restart:

    sudo /Library/StartupItems/MySQLCOM/MySQLCOM restart
    
    0 讨论(0)
  • 2020-12-04 05:24

    Try killing mysqld four times in a row. It's the only thing that worked for me...

    root@ubuntu:/etc/init# killall -KILL mysqld 
    root@ubuntu:/etc/init# killall -KILL mysqld 
    root@ubuntu:/etc/init# killall -KILL mysqld 
    root@ubuntu:/etc/init# killall -KILL mysqld 
    mysqld: no process found
    

    Just keep killing it over and over until you see "mysqld: no process found".

    0 讨论(0)
  • 2020-12-04 05:30

    If my mysql keeps restarting
    sudo rm -rf /usr/local/var/mysql/dev.work.err
    mysql.server stop
    worked for me.

    0 讨论(0)
  • 2020-12-04 05:30

    To stop autostart of mysql on boot, the following worked for me with mysql 8.0.12 installed using Homebrew in macOS Mojave 10.14.1:

    rm -rf ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
    
    0 讨论(0)
  • 2020-12-04 05:30
    /etc/init.d/mysql stop
    service mysql stop
    killall -KILL mysql mysqld_safe mysqld
    
    When you see the following information, you success
    
    mysql: no process found
    mysqld_safe: no process found
    mysqld: no process found
    

    I use this to solve the installation problem of MySQL 5.6 in Ubuntu 15.10 using this link.

    During this installation, I encounter the problem saying:

    "mysqld_safe A mysqld process already exists"
    

    Just completely stop the mysqld, mysqld_safe, mysql solves the problem.

    0 讨论(0)
提交回复
热议问题