I have done a remote log-in into my Ubuntu 14.04
server as a root user.
When I try:
sudo stop mysql
I get:
stop: unknown instance:
When I try:
sudo service mysql stop
I get:
stop: unknown instance:
I read a post somewhere where someone posted a similar question, the answer being that the server is most likely already not running so I tried:
mysqladmin -u root -p status
And I get Uptime: 1543 Threads: 1 Questions: 500 etc...
...which means the server is indeed running.
So, how do I stop mysql
? I'm sure I tried sudo stop mysql
before and it worked.
Today I added a password for access to the mysql db as a root user, could that be something to do with it?
I know the password is working ok because I need to enter it in order to log into phpMyAdmin
.
With service mysql status
I get mysql stop/waiting
like it's hanging - shouldn't it just shut down eventually?