I'm exercising OS X and this error occured to me at the time I upgraded from Mavericks to Yosemite. It was solved by employing this command
sudo /usr/local/mysql/support-files/mysql.server start
The MySQL daemon must not be evolved as the system user
root which (generally) do not has any restrictions.
According to your cli, I consider you wanted to formed the initscript instead:
sudo /etc/init.d/mysql stop
Another method would be to employ the mysqladmin tool (notify,
root is the MySQL root user here, not the system
/usr/local/mysql/bin/mysqladmin --port=8889 -u root shutdown
Attempt this for Amazon Linux AMI or for centOS
sudo service mysqld restart
you might attempt this in case you logged in with root:
osx could be exercising launchctl to launch mysql. Attempt this:
sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist
Donal had the right solution for me. But, the updated
plist name for 2017 is
There are various solutions:
1. By appending a command
-user=root create mandatory root account startup.
2. Begin mysqld with an ordinary user. This user should belong to the mysqld user group.
[mysqld]Next include startup user MySQL
On startup, add