I have installed MySQL 5.1.41 via apt-get on Ubuntu.
It turns out that I can not shut down or restart mysqld. I might have gotten it wrong but I believe that I can shut it down remotely with mysqladmin and locally with mysqld.
REMOTELY:
velle@ubuntu:~$ sudo mysqladmin -u root -p shutdown
Enter password:
velle@ubuntu:~$ ps aux | grep mysql | grep -i grep
velle 2272 0.0 0.0 3324 792 pts/1 S+ 12:17 0:00 grep --color=auto velle@ubuntu:~$ ps ax | grep mysql | grep -v grep
2203 ? Ssl 0:00 /usr/sbin/mysqld
Obviously nothing shut down.
LOCALLY:
velle@ubuntu:~$ sudo mysqld stop
^C^C^C^C
Well, it just hangs. Nothing happes, and I can't even Ctrl+C, that just results in the "^C"s. And MySQL is still running.
Did I misunderstand how to use these commands or is mysql acting up?
Thomas
It turns out that I can not shut down or restart mysqld. I might have gotten it wrong but I believe that I can shut it down remotely with mysqladmin and locally with mysqld.
REMOTELY:
velle@ubuntu:~$ sudo mysqladmin -u root -p shutdown
Enter password:
velle@ubuntu:~$ ps aux | grep mysql | grep -i grep
velle 2272 0.0 0.0 3324 792 pts/1 S+ 12:17 0:00 grep --color=auto velle@ubuntu:~$ ps ax | grep mysql | grep -v grep
2203 ? Ssl 0:00 /usr/sbin/mysqld
Obviously nothing shut down.
LOCALLY:
velle@ubuntu:~$ sudo mysqld stop
^C^C^C^C
Well, it just hangs. Nothing happes, and I can't even Ctrl+C, that just results in the "^C"s. And MySQL is still running.
Did I misunderstand how to use these commands or is mysql acting up?
Thomas