This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

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 Answered by Daryl Lee in this comment.

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.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.