wangxin@wangxindeMacBook-Air ~ % ~ cd /usr/local/mysql/bin
zsh: permission denied: /Users/wangxin
wangxin@wangxindeMacBook-Air ~ % bin ls
zsh: command not found: bin
wangxin@wangxindeMacBook-Air ~ % open ~/.zshrc
The file /Users/wangxin/.zshrc does not exist.
wangxin@wangxindeMacBook-Air ~ % PATH=$PATH:/usr/local/mysql/bin
wangxin@wangxindeMacBook-Air ~ % source ~/.bash_profile
wangxin@wangxindeMacBook-Air ~ % mysql -uroot -p
自己找b站视频试了好久,都没成功,后来找了百度上的一篇帖子终于成功了!!!