mySql Access denied 連線失敗

MySql ERROR

大概是今天晚上下班前,不知道為啥可能腦袋撞到,跑去設定 mySql 結果 Rails 直接噴

> mySql Access denied for user 'root'@'localhost'(using password: NO)

弄了半天只好重新設定,紀錄一下 MacOSX MySql Reset 方法

**MacOSX MySql root Password Reset master solution**
**Step by step guide-**

$ brew services stop mysql

$ pkill mysqld

$ rm -rf /usr/local/var/mysql/ **# NOTE: this will delete your existing database!!!**

$ brew postinstall mysql

$ brew services restart mysql

$ mysql -u root

幫自己 QQ

留言

這個網誌中的熱門文章

Ruby Const_defined?