Created
May 24, 2021 08:32
-
-
Save seemly/fc9bf6023cfb333fc336a0363f536ea0 to your computer and use it in GitHub Desktop.
Apple M1 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting up my new Apple M1 macbook pro I was having issues setting up [email protected] using homebrew, with the following message being thrown: | |
``` | |
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) | |
``` | |
We need to modify the MySQL config file: | |
``` | |
nano /usr/local/etc/my.cnf | |
``` | |
Append the following lines: | |
``` | |
tmpdir=/tmp | |
user=root | |
``` | |
Then run: | |
``` | |
brew services restart [email protected] | |
``` | |
You should now have no issues. |
thanks works for me
thanks works for me
Woop! Fantastic. I'm glad it helped.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No problem. I'm glad it helped.