Richard Richard - 4 years ago 154
MySQL Question

MacOS Can't start MySQL Server

I have MacOS Sierra. I have installed MySQL Server which has been working, however, after a reboot of the Mac Book, I cannot start the MySQL Server.

enter image description here

I have tried changing the port from

in the


I would appreciate any help on how to start the MySQL Server, and also have it so it starts automatically on MacOS Boot up.

(I am new to Mac, so apologies if this is a basic question).


Looking for error logs, I can't find anything with todays (2/2/2017) timestamp.

enter image description here

Nothing in the

enter image description here

No files with "mysql" have been modified since I've tried to start the MySQL Server (2/2/2017 after 09:00).

enter image description here
enter image description here

Answer Source

After a discussion with Richard, the following solves the issue:



port = 3306
socket = /tmp/mysql.sock


port = 3306
socket = /tmp/mysql.sock
datadir = /usr/local/mysql-5.7.17-macos10.12-x86_64/data
tmpdir = /tmp

Essentially, although we'd added the relevant stanza's to the my.cnf file, we'd still missed the section heading. Adding the [mysqld] section allowed mysql to start.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download