admin 管理员组文章数量: 1184232
mac上登录mysql出现以下问题:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
主要原因是你的mysql服务没有启动,输入一下命令启动:
mysql.server start
启动成功!
Starting MySQL
.. SUCCESS!
再次输入mysql -u root -p:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.32 Homebrew
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
本文标签: 报错 error macOS MySQL root
版权声明:本文标题:在MacOS上输入“mysql -u root -p”报错:ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/b/1755028092a3062462.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论