MySQL server start issues on Mavericks

后端 未结 4 892
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 10:51

I am having difficulty using MySQL on my MacBook, I am trying to start my server using sudo mysqld_safe and this results in the following output:

14         


        
4条回答
  •  不思量自难忘°
    2021-01-30 11:18

    If you don't have any important data, the easiest would be to reinstall MariaDB from scratch (otherwise skip this step), e.g.

    mv /usr/local/var/mysql /usr/local/var/mysql.bak
    brew reinstall mariadb
    

    Then fix the permissions by:

    sudo chmod -R u+rwX,g+rwX,o-rwx /usr/local/var/mysql
    sudo chown -R $USER:_mysql /usr/local/var/mysql
    

    Restart MariaDB services by:

    brew services restart mariadb
    

    Consider configuring your MariaDB credentials by running:

    mysql_secure_installation
    

    Troubleshooting

    • In case it still doesn't work, check the logs for any further issues by:

      tail /usr/local/var/mysql/*.err
      
    • For example check if in old config file consist any invalid settings, as they may be not supported anymore.

提交回复
热议问题