MacOS Can't start MySQL Server

后端 未结 9 900
甜味超标
甜味超标 2021-02-13 03:58

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.

I have trie

9条回答
  •  醉梦人生
    2021-02-13 04:29

    In my case, ownership of the msyql directory had somehow changed to admin:admin. I use ares suggestion to run mysqld from the terminal:

    sudo /usr/local/mysql/support-files/mysql.server start
    

    Which showed a permissions error writing to a msyql file.

    I fixed with this command:

    sudo chown -R _mysql:wheel /usr/local/mysql/data
    

    from this post:

    What user should own /usr/local/mysql on Mac?

提交回复
热议问题