MAMP安裝後沒有 mysql 控制命令,軟串連沒許可權等等

來源:互聯網
上載者:User
安裝 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...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.