When accessing the local MySql, Can't connect to MySQL server on'localhost' (10061)

  1. Win + R, enter the services.mscopen service management interface
  2. Open MySql service
  3. Open CMD as an administrator and entermysqld.exe --install
  4. That's it. Use mysql -u [你的用户名] -p [你的密码]to log in

Guess you like

Origin blog.csdn.net/SJ1551/article/details/107853362