After rails s
, I often get mysql errors, so I'd like to think about it.
The meaning of the error statement is that there is no communication mechanism called a socket that connects the client and the server, so you cannot connect to the MySQL server through'/tmp/mysql.sock'.
$ sudo mysql.server restart
Starting MySQL
.. SUCCESS!
Basically, it can be solved with sudo mysql.server restart
The probable cause is that the Mysql server is not started.
http://www.hi-ho.ne.jp/tsumiki/book_sup2.html
Recommended Posts