gpt4 book ai didi

MySQL - 由于忘记密码而重新安装,但无法连接到服务器(Mac OS)

转载 作者:行者123 更新时间:2023-11-29 16:49:08 24 4
gpt4 key购买 nike

我在 Mac 上重新安装了 MySQL Server 和 Workbench,因为我忘记了密码。我成功做到了;但是,我收到一条消息,说我无法连接到服务器。

2018-10-21 17:10:13 - Starting server...
2018-10-21 17:10:13 - Executing 'launchctl load -F/Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist'
2018-10-21 17:10:18 - Checking server status...
2018-10-21 17:10:18 - Trying to connect to MySQL...
2018-10-21 17:10:18 - Can't connect to MySQL server on '127.0.0.1' (61) (2003)
2018-10-21 17:10:18 - Assuming server is not running
2018-10-21 17:10:18 - Starting server...
2018-10-21 17:10:18 - Executing 'launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist'
2018-10-21 17:10:18 - Start server: /Library/LaunchDaemons/com.oracle.oss.my
2018-10-21 17:10:18 - Start server: sql.mysqld.plist: service already loaded

2018-10-21 17:10:18 - Server start done.
2018-10-21 17:10:22 - Checking server status...
2018-10-21 17:10:22 - Trying to connect to MySQL...
2018-10-21 17:10:22 - Can't connect to MySQL server on '127.0.0.1' (61) (2003)
2018-10-21 17:10:22 - Assuming server is not running

谁能告诉我如何解决这个问题?谢谢。

最佳答案

检查mysql是否启动并运行:

ps -aux | grep mysql

如果不是,请使用命令

mysql.server start

或者尝试重新启动服务

mysql.server restart

并尝试再次连接

关于MySQL - 由于忘记密码而重新安装,但无法连接到服务器(Mac OS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52919958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com