Setup local dev environment in MacOS

D.C Style

Well-known member
So I've recently moved to MacOS for nearly a month. So many new things for me.
I tried to follow this instruction: https://xenforo.com/docs/dev/macos-dev/
But I got stuck at this step:

MariaDB​

We now need to get MariaDB up and running.

In your terminal window, enter the following commands:

brew services start mariadb;
sudo /usr/local/bin/mysql_upgrade;

You will be asked the MySQL root password - there isn't one yet, so just press enter when prompted.

Next up:

sudo /usr/local/bin/mysql_secure_installation;

You can press enter to accept the defaults for most of the questions this script will ask, except for the root password, which you will need to set. As this is only a development installation, a password of root is fine.

When I tried to run the command
Code:
sudo /usr/local/bin/mysql_upgrade;

I got this error
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
FATAL ERROR: Upgrade failed

Not sure what it is. Anybody can help me with this? Thanks alot.
 
Back
Top Bottom