Wednesday, June 30, 2010

MySQL Service Could Not Start, 1067 Errors fix


If you’ve unzipped mysql out to a folder and you set it up to run as a service, like so

C:\mysql5_x64\bin\mysqld-nt.exe --install-manual

You might try to launch the service from the Control Panel -> Administrative Tools -> Services Window. But if you’re getting the error message:

‘Could not start the MySQL service on Local Computer

Error 1067: The process terminated unexpectedly.’

Running from the command line:

C:\mysql5_x64\bin\mysqld-nt.exe --console

Should work fine. So what’s the problem? You are missing your my.ini file. Create the file (you can copy one of the defaults that come with it such as my-small.ini), and make the following changes by adding the basedir & datadir lines, so it looks something like this:

# The MySQL server

[mysqld]

###################################

basedir=C:/mysql5_x64

datadir=C:\mysql5_x64/data

###################################

port = 3306

socket = /tmp/mysql.sock

If you try to launch the service again, you should feel alot happier.

No comments:

Post a Comment