gpt4 book ai didi

MySQL:无法启动服务,Windows 10

转载 作者:行者123 更新时间:2023-11-30 21:43:57 24 4
gpt4 key购买 nike

我知道这个问题以前被问过很多次,但我尝试过的所有解决方案都不适合我。

因此,我安装了 MySQL Workbench 和服务器。我以 root 身份登录 Workbench。在工具栏中,我点击Server,然后点击Startup/Shutdown,然后点击按钮Start Server。但每当我这样做时,我都会得到以下日志:

018-05-14 21:09:59 - Starting server...
2018-05-14 21:10:07 - Server start done.
2018-05-14 21:10:09 - Checking server status...
2018-05-14 21:10:09 - Trying to connect to MySQL...
2018-05-14 21:10:09 - Can't connect to MySQL server on 'localhost' (10061) (2003)
2018-05-14 21:10:09 - Assuming server is not running

另外会出现一个弹出窗口,上面写着:

Connect Error

Could not connect to MySQL: Can't connect to MySQL server on 'localhost' (10061)(code 2003)

我发现的一个解决方案建议手动安装服务器。所以我以管理员身份进入 cmd 并输入:

C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --install

它给出了以下输出:

Service successfully installed.

但在 Workbench 中,服务器仍处于停止状态,当尝试像上面提到的那样启动它时,会出现具有相同弹出窗口和错误的相同日志。

我发现的另一个解决方案建议安装 MySQL Notifier 并使用它来启动和停止服务器并使用它来管理监控项。但坦率地说,一旦我重新启动工作台并尝试以 root 身份登录,它甚至不会登录,但会弹出以下错误消息:

Cannot Connect to Database Server

Your conection attempt failed for user 'root' from your host to server at localhost:3306:
Authentication plugin 'catching sha2 password' cannot be loaded: Das angegebene Modul wurde nicht gefunden.

Please:
1 Check that mysql is running on server localhost
2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
3 Check the root has rights to connect to localhost from your adress (mysql rights define what clients can connect to the server from which machines)
4 Make sure you are both providing a password if needed and using the correct password for localhost connecting from the host adress you're connecting from

所以现在这个“无法加载身份验证插件'捕获 sha2 密码':” 看起来很可疑,我试着查找它。我找到了 this solution ,这需要我从 cmd 登录到 MySQL,但是当我键入 C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -u root -p 并执行它时,它要求我提供的密码,但它随后回答

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

现在我碰壁了,我不知道如何继续。 MySQL 服务器仍然无法工作,我很绝望。

最佳答案

您的计算机上是否安装了 SQL Server (MSSQL) 实例?如果是这样,这可能会导致问题。 MSSQL可能会“捕获”3306端口,尝试停止MSSQL服务,测试MySQL。

关于MySQL:无法启动服务,Windows 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50337982/

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