Home > Article > Backend Development > After MAMP is installed, there is no mysql control command, soft links have no permissions, etc.
After installing MAMP, enter mysql prompt in the terminal
<code>mysql -bash: mysql: command not found</code>
Then I made my own connection to /usr/bin, but it was prompted that I don’t have permission
<code># sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin ln: /usr/bin/mysql: Operation not permitted</code>
If you want to use Sequel Pro to connect to the database, here are the tips:
<code>MySQL said: Access denied for user 'root'@'localhost' (using password: YES)</code>
How to solve these problems?
After installing MAMP, enter mysql prompt in the terminal
<code>mysql -bash: mysql: command not found</code>
Then I made my own connection to /usr/bin, but it was prompted that I don’t have permission
<code># sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin ln: /usr/bin/mysql: Operation not permitted</code>
If you want to use Sequel Pro to connect to the database, here are the tips:
<code>MySQL said: Access denied for user 'root'@'localhost' (using password: YES)</code>
How to solve these problems?
<code>mysql -bash: mysql: command not found 这个可能是环境变量的问题 第二个不知道,没玩过。 MySQL said: Access denied for user 'root'@'localhost' (using password: YES) 你这是密码错误的提示呢</code>
If you are on a mac, the solution to Operation not permitted
is that El Capitan has added the Rootless mechanism, and you can no longer read and write many paths as you like. Setting root permissions doesn't work either.
To turn off Rootless
Restart, press Command+R, enter recovery mode, and open Terminal.
<code>csrutil disable</code>
Just restart again
Reference article: http://www.jianshu.com/p/22b8...