First try:
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
Prompt: operation not permitted
Again, add sudo to attach administrator permissions, and still prompt: operation not permitted
Then try:
Create and edit the file.
vim ~/.bash_profile
Add.
export PATH=$PATH:/usr/local/mysql/bin
Save, exit
As a result, even MySQL still reported an error
Reexecution:
source ~/.bash_profile
Done
is summarized as follows:
1. create and edit the file: vim ~/.bash_profile.
2. Add export PATH=$PATH:/usr/local/mysql/bin
3. Save and exit wq
4. Execute to take effect source ~/.bash_profile;
Similar Posts:
- HDFS Operate hadoop Error: Command not Found [How to Solve]
- After installing node on MAC, enter node – V to prompt node command not found
- macos -bash: yarn: command not found/-bash: cnpm: command not found
- Ubuntu solves sudo: Source: command not found error
- Mac ADB prompts command not found
- CentOS Error -bash:systemctl:command not found
- [Warning] Using a password on the command line interface can be insecure. (Solved)
- When installing MySQL database on MAC, the system prompts MySQL: command not found
- When installing MySQL database on Mac OS, the system prompts MySQL: command not found
- Solve the problem of ADB: command not found on MAC