Getting started on OS X with Homebrew MariaDB
I just installed MariaDB on my iMac yesterday using Homebrew and am getting what seems to be a popular problem but I can't find an actual solution. When I run "brew services start mariadb" I get a success response, but then when I run "mysql -u root" (or any other starting user id), I get this:
ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2)
I then check to see if mysqld is running (ps ax | grep mysqld
) and it isn't.
This seems to have been a hot topic about five years ago, but it's my first time, so any help would be appreciated.
Answer
SOLVED. Thinking back through my effort, I realized I didn't really know that MariaDB was a fork of MySql and not just a wrapper for it. I had actually installed both MySql and MariaDB and there's no telling what damage that did. So I did a full restart of Homebrew (because those were my first two installs) and all is well.