Mysql 在计算机的服务里没了(已解决)
mysql无法连接,报错:
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
终端输入services.msc
回车, 发现服务里没有MYSQL
解决方法:
- 终端输入
where mysql
, 找到mysql的安装路径 cd D:\MySQL\bin
,执行:
D:\MySQL\bin>mysqld.exe -install
Service successfully installed.
- 启动mysql
D:\MySQL\bin>net start mysql