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

后端 未结 30 2847
予麋鹿
予麋鹿 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:32

    In Windows 7

    1. press Windows+R it opens Run
    2. Enter services.msc
    3. Find out mysql right click and start
    4. if mysql was not found
      1. Run cmd as administrator
      2. goto C:\Program Files (x86)\MySQL\MySQL Server 5.6\bin directory(to go back use cd..) and type mysqld.exe --install
    5. follow step 3

    That's all

    0 讨论(0)
  • 2020-12-13 00:35

    Please Try the following steps:

    1. c:\mysql\bin>mysqld --install
    2. c:\mysql\bin>mysqld --initialize

    then press "Windows key + R" write "services.msc", run as admin

    start MySQL service.

    0 讨论(0)
  • 2020-12-13 00:35

    In case of Xampp Installation.

    Go to your xampp installation and mysql folder, for my case: C:\xampp\mysql

    Run the file "resetroot.bat" from cmd or explorer.

    My installation started working!!!

    0 讨论(0)
  • 2020-12-13 00:35

    I had the same issue and basically resolved it by pointing to a specific port number that my MySQL server was running on. Below is the command. Please edit the code to fit your case i.e your port number,your mysql server username,your password.

        mysql -u root -pYourMysqlRootPassword -P3307 
    
    0 讨论(0)
  • 2020-12-13 00:36

    I have Windows 8.1 and I too had this problem. My teacher told me it was probably because my MySQL server had stopped running. She told me to go into the Computer Management utility (right click the lower-most left hand corner of the screen on Windows 8.1 to access Computer Management). Then under Services and Applications, open up the Services and find MySQL. You should be able to right-click on MySQL and restart it.

    0 讨论(0)
  • 2020-12-13 00:36

    if it is showing error 2003 (HY000): Can't connect to MySQL server on localhost (10061) than

    1. Search services.msc in run
    2. goto mysql properties
    3. copy the mysql service name
    4. start cmd as administrator
    5. write: net start mysqlservicename .i.e mysql57 or etc it will show mysql is starting.
    0 讨论(0)
提交回复
热议问题