1067 error on attempt to start MySQL

后端 未结 26 1835
无人及你
无人及你 2020-12-13 14:12

I\'ve installed MySQL on Windows 7. When I\'m trying to start MySQL service I\'m getting error 1067: The process terminated unexpectedly. Log message:

101111         


        
相关标签:
26条回答
  • 2020-12-13 14:48

    I had the same problem. In my case, it was "user error" (although the Windows installer should have been smarter about it and prevented me from committing such an error).

    During installation, if you make changes to the default installation paths, make sure you use the same paths for both the "Server data files" on the Custom Setup screen and then later in the "InnoDB Tablespace Settings" during the "MySQL Server Instance Configuration Wizard"

    0 讨论(0)
  • 2020-12-13 14:48

    The problem look like there is no data in the directory. copy at least the mysql directory either from your previous directory or from C:\Program Files\MySQL\MySQL Server 5.5\data . And then try again.

    0 讨论(0)
  • 2020-12-13 14:50

    Also check if all dirs which you wrote in the my.ini exists.

    My problem was that tmpdir doeesn`t exist so MySQL daemon falls with error 1067.

    [mysqld]
    port= 3306
    tmpdir = "C:/tmp"
    

    In this case C:/tmp must exists.

    0 讨论(0)
  • 2020-12-13 14:50

    in my case innodb_data_home_dir was no longer correct because I had shuffled some drive letters around when I added a new drive to my system

    0 讨论(0)
  • 2020-12-13 14:51

    Before messing with too much things, please check the user the service is trying to run as. In my case it was NETWORK this one did not have write permissions to some locations where it was needed. Changing the user to Local System Account did the trick.

    If the event viewer shows any error like "Can't create test file C:\Program Files\MySQL\MySQL Server 5.6\data\XXX.lower-test", there is a high probability for this solution to work. Good luck!

    0 讨论(0)
  • 2020-12-13 14:52

    One more thing that prevents the mysqld windows service from running is if you have mysqld.exe already running (but not as a service) and occupying port 3306. When the service tries to start and sees that port 3306 is already taken, it fails.

    Just open up the windows task manager and look for "mysqld.exe" under the Processes tab. If you see it, kill it and then try to start the service again.

    c:\> net start [servicename]
    

    example: c:\> net start MySQL

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