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

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

    I also faced the same issue and resolved it by below setups:

    1. Check the MYSQL service in the windows service. If it is there and not running then start it. It will solve your problem.

      You can find the services window by navigating to windows Start menu and typing 'services' in the search bar. Select the 'Services' option with the cogs next to it (not the executable file) and the below window will appear. Scroll down to find 'MySql (version)'. When you select MySql you should see an option in the left pane that says 'Start the service'. Click this and a dialogue should appear to indicate Windows is attempting to start the service. Once started the left pane will now give you the option to stop, pause and restart the service and you will now be able to connect to your MySql from the windows cmd line.

    1. If MYSQL service is not present in windows service then follow below setups.

      a. Open cmd as administrator.

      b. cd to C:\Program Files (x86)\MySQL\MySQL Server 5.6\bin

      c. Run the command: C:\Program Files (x86)\MySQL\MySQL Server 5.6\bin>mysqld.exe --install

      d. Check the MySql in the windows service, And if it is not running, Start it by clicking on the service.

      e. If your using XAMMP . Start MySQL at the XAMMP control Panel.


提交回复
热议问题