Well, you have to locate the place where the mysql installation located the files previously.
For exemple, on my linux box, it's on /var/lib/mysql
A database named "test" will be present in the form of a folder named "test".
Now, I never did this, but if the new server is the same version than the old one, you might be able to copy the folder from the old directory to the new.
I just tested it live on my box, and it worked.
I copied a database/directory "test" to "test2", and restarted the mysql service, and I had a "test2" database available through the mysql client.
Now, if the disk in your enclosure is located at /home/ and if the mysql files are at the same place than on my server, you should found them on /home/var/lib/mysql
You can try to look for files named *.MYD, *.MYI or *.frm. The case is important !
Try to locate them with this command:
Code:
find -iname '*.MYD' /home/
to look for every files with a MYD extension.
Then, try to locate where your actual mysql database files are located.
Adapt the "find" command up there to locate them, if needed.
Once this is done, copy the directories ( "cp -a" to keep the permissions) from the enclosure to the working server location, but be sure that you don't have any existing database with the same name that exists.
You could corrupt the working database by overwriting a file that is in use.
Then restart the mysql server ("/etc/init.d/mysql restart" on my box) and you should be ready to roll.