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
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,
/usr/local/var/mysql
, then removed it brew remove mariadb
brew install mariadb
brew services start mariadb
After that I could access with mysql -u root
This problem seems to have recently gone away.
A simple bew upgrade
resolved the problem for me.
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
You might have an orphaned configuration file. I was able to solve this problem by deleting an old /usr/local/etc/my.cnf
. YMMV.
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.
You may want to go
/usr/local/mysql
and delete the old MySQL file and install again