MariaDB homebrew install errors

后端 未结 6 806
梦如初夏
梦如初夏 2020-12-16 20:54

I have just installed MariaDB via homebrew on my Mac. At the end of the installation I got the following error:

Warning: The post-install step did not comple         


        
相关标签:
6条回答
  • 2020-12-16 21:37

    None of the solution here helped, I had to do this:

    The post-install step did not complete successfully MySQL Mac OS Sierra

    in short,

    • I made a backup of the folder /usr/local/var/mysql , then removed it
    • removed Mariadb brew remove mariadb
    • reinstalled Mariadb brew install mariadb
    • run brew services start mariadb

    After that I could access with mysql -u root

    0 讨论(0)
  • 2020-12-16 21:39

    This problem seems to have recently gone away.

    A simple bew upgrade resolved the problem for me.

    0 讨论(0)
  • 2020-12-16 21:43

    Just open the config file at /usr/local/etc/my.cnf with your editor and comment out the following line:

    !includedir /usr/local/etc/my.cnf.d
    
    0 讨论(0)
  • 2020-12-16 21:44

    You might have an orphaned configuration file. I was able to solve this problem by deleting an old /usr/local/etc/my.cnf. YMMV.

    0 讨论(0)
  • 2020-12-16 21:45

    Having been unsuccessful with further Googling of the problem I tried manually creating a /usr/local/etc/my.cnf.d and now the mysql_install_db command seems to have worked okay. I'm not sure if this is the appropriate solution or if my.cnf.d not existing is indicative of a deeper problem with the install but, as things seem to be working, I'll mark as resolved.

    [Update] As I was a little unsure in my answer whether this was the 'correct' solution I just wanted to confirm that, after a month, everything is still working fine.

    0 讨论(0)
  • 2020-12-16 21:58

    You may want to go

    /usr/local/mysql
    

    and delete the old MySQL file and install again

    0 讨论(0)
提交回复
热议问题