方案一:
、打开cmd;
、输入命令:net stop +MySQL的服务名,停止MySQL服务,如果未启动MySQL服务则可跳过该步骤;
、输入命令:mysqld --remove卸载MySQL服务,如果未安装MySQL服务则可跳过该步骤;
、 打开mysql\bin\my.ini,查找[mysqld],在[mysqld]下面添加一行文字,skip-grant-tables
即组成
[mysqld]
skip-grant-tables(原文来自http://zhidao.baidu.com/link?url=rloIj9ijRki6qTnFz1DQBcVL3_6J0pxVWsf3tHKI_gy6fteL5lFoqmtSFr0grYFm7l3wk_jzf5U4WDEoWCvKs_)
、输入命令:mysqld --install MySQL的服务名--defaults-file=“my-default.ini的路径”,安装MySQL服务;
、提示安装成功后,输入命令:net start MySQL的服务名,启动MySQL服务。 方案二:
相关文章
- 08-15MySQL8.0报错Can't connect to MySQL server on 'localhost' (10061)的解决办法
- 08-15ERROR 1010 (HY000): Error dropping database (can't rmdir '.\qpweb', errno: 41) 删库失败问题的解决
- 08-15Mac端解决(含修改8.0.13版的密码):Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 08-15mysql-error --(ERROR 1135 (HY000): Can't create a new thread (errno 11); if you are not out)
- 08-15mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug when trying to connect 解决办法
- 08-15如何修复ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)。
- 08-15MySQL8.0报错Can't connect to MySQL server on 'localhost' (10061)的解决办法
- 08-15(2003, “Can‘t connect to MySQL server on ‘localhost‘ (10061)“)解决
- 08-15MySQL:Can't connect to MySQL server on 'localhost'(10061)
- 08-15Mysql登录出现Can‘t connect to MySQL server on localhost (10061)【解决】