安裝 MAMP 後再終端輸入 mysql 提示
mysql-bash: mysql: command not found
然後自己製作串連到/usr/bin,提示沒許可權
# sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/binln: /usr/bin/mysql: Operation not permitted
想用 Sequel Pro 串連資料庫,也是提示:
MySQL said: Access denied for user 'root'@'localhost' (using password: YES)
請問這些問題怎麼解決呢?
回複內容:
安裝 MAMP 後再終端輸入 mysql 提示
mysql-bash: mysql: command not found
然後自己製作串連到/usr/bin,提示沒許可權
# sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/binln: /usr/bin/mysql: Operation not permitted
想用 Sequel Pro 串連資料庫,也是提示:
MySQL said: Access denied for user 'root'@'localhost' (using password: YES)
請問這些問題怎麼解決呢?
mysql-bash: mysql: command not found這個可能是環境變數的問題第二個不知道,沒玩過。MySQL said: Access denied for user 'root'@'localhost' (using password: YES)你這是密碼錯誤的提示呢
如果你是mac,Operation not permitted的解決方案
是El Capitan 加入了Rootless機制,不再能夠隨心所欲的讀寫很多重路徑下了。設定 root 許可權也不行。
要關閉Rootless
重啟按住 Command+R,進入復原模式,開啟Terminal。
csrutil disable
再重啟就可以
參考文章: http://www.jianshu.com/p/22b8...