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
I also get log with Table 'mysql.plugin' doesn't exist if install MYSQL Server 5.1 by 'msiexec.exe' DataDir I put as C:\MYSQL\MySQL_Server_5_1\data\
but to my surprise was create data in a C:\MYSQL\MySQL_Server_5_1\data\data
There are was add word data . So I change my.ini file from
datadir="C:/MySQL/MySQL_Server_5_1/Data/" .
to the
datadir="C:/MySQL/MySQL_Server_5_1/Data/data"
and then I can use net start MYSQL51 and then mysqld.exe run and appear in a Task Manager
I ran into the same errors. Similar approach for me. From what I can tell, there is something weird going on with the reference to the datadir
in the my.ini
file. Even when I manually edited it I could not seem to have any effect on it, until I blew EVERYTHING AWAY. Wish I had better news...do a DB backup first.
For me the key to getting this to work was:
1) Remove the previous installation from settings->control panel
. Restart your machine.
2) Once machine comes back up, forcefully delete the previous installation directory.
[mine is C:\apps\MySQL\MySQLServer-5.5\
, as I REFUSE to use c:\program files\..
]
3) Forcefully delete the previous datadir directory [mine was c:\data\mysql
].
4) Forcefully delete the previous default data directory [C:\Documents
and Settings\All Users\Application Data\MySQL
].
5) Re-run the install, selected the same installation directory. Skip the instance configurator/wizard
at the end of the install.
6) Make sure the ../bin
directory gets added to the path. Verify it.
7) Manually run the instance configurator/wizard
.
Set the root password, port [3306
].
It will try to start it. Again, mine FAILED to start
[duh! nothing new there!!!]
8) Now, manually edit the my.ini
file in the install directory, and correct the datadir
setting to be [datadir="C:/Data/MySQL/"
] MATCH CAPITALIZATION !!!!
9) Verify the service is setup correctly via the command-prompt [sc qc mysql <enter>
].
Should look like:
C:\dev\cmdz>sc qc mysql
[SC] GetServiceConfig SUCCESS
SERVICE_NAME: mysql
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : "C:\apps\MySQL\MySQLServer-5.5\bin\mysqld" --defaults-file="C:\apps\MySQL\MySQLServer-5.5\my.ini" MySQL
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : MySQL
DEPENDENCIES :
SERVICE_START_NAME : LocalSystem
10) Copy the contents of the default data-directory created under C:\Documents and Settings\All Users\Application Data\MySQL
[basically everything in this directory to your desired data directory c:\data\mysql
]. Make sure you get the C:\Documents and Settings\All Users\Application Data\MySQL\mysql
directory. This has host.frm
file, and others.
You should end up with a directory now of c:\data\MySQL\mysql...
11) Rename the default directory
C:\Documents and Settings\All Users\Application Data\MySQL
To
C:\Documents and Settings\All Users\Application Data\MySQLxxx
So it cannot find it...
12) Say a quick prayer...
13) Give it a kick start from command line with [net start mysql
]
That got it working for me...
Best of Luck!