简体   繁体   English

当我尝试在命令行中访问 Mysql 时,我在命令行中收到错误消息

[英]I get an error message in the command line when I try to access Mysql in the command line

I have installed Mysql from the Mysql Community on my late 2019 Mac.我在 2019 年末的 Mac 上安装了来自 Mysql 社区的 Mysql。 I used the below sudo code and then I typed in my my Mac computer password.我使用了下面的 sudo 代码,然后输入了我的 Mac 电脑密码。 The Terminal says file exists.终端说文件存在。 I really don't know what that means or what to do.我真的不知道那是什么意思,也不知道该怎么办。 Then I typed in the root password that I set up during the installation of Mysql. The Terminal says commend not found: mysql然后我输入了我在安装 Mysql 时设置的 root 密码。终端说找不到推荐:mysql

Can someone please take a look at the below?有人可以看看下面的内容吗?

davidd.christie@Davids-Macbook-Pro ~ % sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin

Password:

in:/usr/local/bin: File exists

davidd.christie@davids-MacBook-Pro ~ % mysql -u root -p

zsh:command not found:mysql

davidd.christie@davids-MacBook-Pro ~ %

Can you try reboot your Mac?您可以尝试重新启动您的 Mac 吗? I think that you need to reload shell.我认为您需要重新加载 shell。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM