错误:
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost:3306’ (10061)
The service already exists! The current server installed: E:Environmentmysql-8.0.26-winx64inmysqld MySQL
解决方法:
1.mysqld --remove mysql,然后手动把data文件夹和my.ini文件删除了
2.mysqld --install (安装mysql)
3.mysqld --initialize --user=root --console (初始化mysql)
4.net start mysql (启动mysql)
5.mysql -u root -p (进入mysql,输入初始密码)
6.set password="你的新密码"; (设置密码)