If you need to access to MySQL and you see this warning.
$ mysql -u root ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Don't, don't forget to turn on your MySQL 😅
$ start_mysql Starting MySQL . SUCCESS!
start_mysql is an alias in my .bash_alias file [Updated]
# DB alias start_mysql='mysql.server start' alias stop_mysql='mysql.server stop'
$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.18 Homebrew Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
That's all folks!