首页 > 解决方案 > 错误地停止在本地主机上运行后无法启动 MySQL 服务器

问题描述

我正在尝试工作台并错误地停止了在 localhost 上运行的 MySQL 服务器。然后我尝试从工作台和 windows powershell 重新启动它。那没起效。我卸载了 MySQL 并从头开始重新安装它。但这也无济于事。我也尝试了 StackOverflow 上给出的所有方法。那也不起作用

Windows 甚至没有在服务窗口中显示 MySQL,即使我重新安装它。甚至powershell都给出错误,服务名称(MYSQL)无效

请让我知道如何重新启动 MySQL 服务器。感谢你在期待。

我在下面附上错误消息

2021-03-23 06:23:54 - Workbench will use cmd shell commands to start/stop this instance
2021-03-23 06:23:54 - Checking server status...
2021-03-23 06:23:54 - Trying to connect to MySQL...
2021-03-23 06:23:54 - Unable to connect to localhost (2003)
2021-03-23 06:23:54 - Assuming server is not running
Could not open error log file: [Errno 2] No such file or directory: 'C:\\ProgramData\\MySQL\\MySQL Server 5.6\\data\\ABHIJEET.err'
2021-03-23 06:23:59 - Starting server...
2021-03-23 06:23:59 - Could not start server: argument 2: <class 'TypeError'>: wrong type
2021-03-23 06:24:05 - Checking server status...
2021-03-23 06:24:05 - Trying to connect to MySQL...
2021-03-23 06:24:05 - Unable to connect to localhost (2003)
2021-03-23 06:24:05 - Assuming server is not running
2021-03-23 06:24:05 - Checking server status...
2021-03-23 06:24:05 - Trying to connect to MySQL...
2021-03-23 06:24:05 - Unable to connect to localhost (2003)
2021-03-23 06:24:05 - Assuming server is not running

标签: mysqldatabaselocalhostmysql-workbench

解决方案


我对 Workbench 不太熟悉,但我认为端口号与其他一些应用程序发生冲突。


推荐阅读