Mysql – thesql server does not start!

databaseMySQLservice

I had installed MySQL server 5.1.1 on my PC (windows 7 ultimate 32bit, CPU Dual core 2.60 MHz, 2.00 GB RAM) and it was up and running well, until last Wednesday I was forced to uninstall it, and now when I reinstall it,in the last level of creating server instance, when I press execute, It checks OK for 'prepare configuration' and 'write configuration file', but in 'start server' it faces an error and doesn't continue… and afterward when I try to start MySQL service manually from windows services, It says:
"Windows could not start MySQL service on local computer.
Error 1067: The process terminated unexpectedly."
When I wanna check error log to see why? the data folder of mysql is empty!
I tried everything:
port 3306 is open and no one is listening on it.
my firewall has mysql exception and I even disabled it.
i even tried new versions of mysql 5.1.2 it's the same.
What should I do… please guys! this is urgent.

Best Answer

If your 'data' Directory is empty you already found the problem. It ain't supposed to empty, at least the 'mysql' Directory within and files are necessary so it can start.