Can't connect to MySQL server on 'localhost' (10061) after Installation

后端 未结 30 2943
予麋鹿
予麋鹿 2020-12-13 00:08

I installed MySQL using mysql-installer-5.5.20.0.msi on Windows 7. From the cmd window, I run \"mysqlshow -u root -p\". It asked for a password, then return

30条回答
  •  臣服心动
    2020-12-13 00:20

    For me, three steps solved this problem on windows 10:

    I downloaded MySQL server community edition zip and extracted it in the D drive. After that I went to bin folder and did cmd on that folder. I followed the below steps and all works:

    D:\tools\mysql-8.0.17-winx64\bin>mysqld -install
    Service successfully installed.
    
    D:\tools\mysql-8.0.17-winx64\bin>mysqld --initialize
    D:\tools\mysql-8.0.17-winx64\bin>net start mysql
    The MySQL service is starting...
    The MySQL service was started successfully.
    

提交回复
热议问题