I try running service mysql stop, killall -s SIGKILL mysqld, /etc/init.d/mysql stop, and stop mysql, but still I see this output from ps aux | grep mysql:
root     32302  0.0  0.3  59040  2120 pts/8    S    06:03   0:00 sudo mysqld_safe
root     32305  0.0  0.1   4440   772 pts/8    S    06:03   0:00 /bin/sh /usr/bin/mysqld_safe
mysql    32651  0.1  6.8 426740 41388 pts/8    Sl   06:03   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
Invoke mysql from your command prompt to start it, specifying any connection parameters that may be necessary. To leave mysql, use a QUIT statement.
mysqld, also known as MySQL Server, is the main program that does most of the work in a MySQL installation. MySQL Server manages access to the MySQL data directory that contains databases and tables. The data directory is also the default location for other information such as log files and status files.
The only thing that worked for me is partially explained here.
If everything else fails, try this:
root@myhost:/usr/bin# initctl --system stop mysql
After that you can start controlling mysql normally using
root@myhost:/usr/bin# /etc/init.d/mysql start
Or
root@myhost:/usr/bin# initctl --system start mysql
You can use pkill mysqld
Linux man page: pkill
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With