Re: How to restart MySql via command?
I tried mysql.server status and I got ERROR! MySQL is not running. So I tried the following and got similar error.
mysql.server start
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/mycompx.pid).
But if I tried the ps aux | grep mysql I got the following:
$ ps aux | grep mysql
_mysql 3714 0.0 0.1 2896220 9188 ?? Ss Thu02PM 0:49.85 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid
lorcz 37460 0.0 0.0 2445080 820 s001 S+ 12:16PM 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn mysql
Do I have two version of mysql running?
Subject
Written By
Posted
Re: How to restart MySql via command?
March 07, 2017 12:17PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.