DRYな備忘録

Don't Repeat Yourself.

Can't connect to local MySQL server through socket '/tmp/mysql.sock'【MySQL】【MacOS】

mysqldが起動してない疑い大

mysqld start

「Can't connect to local MySQL server through socket」エラーについて

追記 2014/03/11

上記の方法だといろいろしかられる。特に

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

これとか。

以下の方法で難なく起動した。

mysqld_safe

これだけ。終了は別ウィンドウから

pkill mysql

さらに追記 2014/03/15

それでも動かないとき