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

后端 未结 30 2844
予麋鹿
予麋鹿 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:36
    1. In Start Menu, search for "mysql". Among the results, you should see the "MySQL Installer - Community". Run it.

    2. MySQL Installer window will show up as shown below. Find "MySQL Server" under Product and click on "Reconfigure" link.

    3. The MySQL Installer will show up (same one you used for the first MySQL Server installation). Go through all the steps.

    4. After the MySQL Installer was finished, I started the MySQL service again. This time, the "Startup Message Log" on The MySQL Notifier was showing that the server started successfully:

    https://www.howtosolutions.net/2017/08/fixing-mysql-10061-error-after-migration-of-database-files/

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

    this issue is very to solve by windows server users

    1. go to this path C:\Program Files\MySQL\MySQL Server 5.1\bin

    2. run this tool "MySQLInstanceConfig.exe"

    and config the instatnce again and problem solved

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

    From what I've gathered this means the mysql service (mysqld) isn't running.

    • First make sure it is installed as a windows service : Run

    "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --install

    from the command line.

    • Next, start it up :

    services.msc > MySQL > start

    If it fails to restart, then you can follow these steps :

    • open the command line as an administrator : cmd.exe > open as administrator
    • run "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld" --verbose

    it should fail and put the error log in a directory named data under C:\Program Files\MySQL\MysSQL Server 5.7\ . If it fails to create data for some reason, do it manually under that directory and try again. If you can figure out what's missing from what's in that log, then good, you're done.

    If you've still got no luck, this is how I did it :

    • goto C:\ProgramData\MySQL and copy the file named my.ini to C:\Windows\

    • try to start the service again from the command line : "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld" --verbose

    If it doesn't display any error, than the service startup was successfull. If it's still not working, than delete that my.ini you just copied from C:\Windows and start the service from the command line once again.

    it should work now

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

    For anyone who have the same problem of "Can't connect to MySQL server on 'localhost' (10061) " or "Can't connect to MySQL server on '127.0.0.1' (10061) ". You can install "MySQL Installer" and this is the link http://dev.mysql.com/downloads/windows/installer/5.6.html and this is a tutoriel for more help https://www.youtube.com/watch?v=AqQc3YqfelE

    it works for me and i wish to work for you too.

    0 讨论(0)
  • 2020-12-13 00:41
    1. Create the temp folder c:/mysqltmp
    2. In my.ini file under [mysqld] add the line tmpdir=c:/mysqltmp
    3. Add full privileges to user NETWORK SERVICE for "C:\ProgramData\MySQL\MySQL Server X.Y\Data\ibdata1" file
    4. Start service

    These are steps for the same problem with MySQL5.7 and MySQL8.0 on Windows 10

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

    I too had this problem, its easy to solve:

    Go to Control panel - System and maintenance - System - Advanced system settings - Environment variables - System variables - path - click edit - add

    "c:\xampp\mysql\bin" - it should look like this :

    \Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime Alternative\QTSystem;c:\xampp\mysql\bin

    And don't forget to start MySQL from control panel of Xampp.

    0 讨论(0)
提交回复
热议问题