Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I removed the old WAMPServer 2.0 and it left my old MySQL data directory and my.ini intact. I installed the new WAMPServer 2.2 and need to make my old databases active with the new WAMPServer MySQL.

When I set the data directory in the new my.ini to point to the old data directory, I get this error when trying to start the service:

Could not start the wampmysqld service on Local Computer.
Error 1067: The process terminated unexpectedly.

No other errors. In the Application Event log I see this:

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

How do I get around this as the old MySQL version was 5.1.36 and the new one is 5.5.16.

share|improve this question
add comment

2 Answers 2

You'll need to copy over ALL the contents of your old data dir to the new data dir. Specifically it sounds like you did not copy the mysql folder (read mysql database) over to the new data dir.

share|improve this answer
add comment

Simple solution for me is binary restore. I move database folders from old WAMP to new WAMP.

eg. D:\wamp_old\mysql_data\data[db-folder-name]

move to

D:\wamp_new\mysql_data\data[db-folder-name]

share|improve this answer
    
I replaced full wamp\bin\mysql\mysql5.5.24 But it's showing databases, not tables –  KarSho May 7 at 12:26
    
i am facing the same problem could u help me please –  Nothing Jun 20 at 9:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.