Home > Backend Development > PHP Tutorial > After MAMP is installed, there is no mysql control command, soft links have no permissions, etc.

After MAMP is installed, there is no mysql control command, soft links have no permissions, etc.

WBOY
Release: 2023-03-03 08:46:01
Original
1585 people have browsed it

After installing MAMP, enter mysql prompt in the terminal

<code>mysql
-bash: mysql: command not found</code>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

How to solve these problems?

Reply content:

After installing MAMP, enter mysql prompt in the terminal

<code>mysql
-bash: mysql: command not found</code>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

How to solve these problems?

<code>mysql
-bash: mysql: command not found
这个可能是环境变量的问题

第二个不知道,没玩过。

MySQL said: Access denied for user 'root'@'localhost' (using password: YES)
你这是密码错误的提示呢</code>
Copy after login

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>
Copy after login

Just restart again
Reference article: http://www.jianshu.com/p/22b8...

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template