Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have reinstalled a MySQL 5.0instance to the same location (OS Windows XP), and afterwards, databases stored in /data/ folder become invisible by MySQL. How I can to make it visible again ? All databases are MyISAM type.

share|improve this question

migrated from stackoverflow.com Aug 14 '11 at 7:36

This question came from our site for professional and enthusiast programmers.

    
If you had made no changes to the data directory and did not overwrite the mysql directory there, all your databases would be visible and accessible. –  Dan Grossman Aug 14 '11 at 6:47

1 Answer 1

up vote 2 down vote accepted

Have you tried changing the data directory setting in my.cnf to the location with all the data?

The variable you should be setting is datadir = /path/to/data/directory

You should probably restart the server once you have done that.

share|improve this answer
    
Thank you, it helps. –  Alexey Khaydukov Aug 14 '11 at 7:56

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.