MySQL Migration Help
Hello all,
Here is my situation: I had recently "backed up" some data in a MySQL database directory, before reinstalling the OS. Currently, I am trying to find a way to restore this database information, as I am unable to view it simply by copying the corresponding directories into my server's MySQL data directory. Hindsight dictates that I completely did not backup the data in an appropriate fashion (e.g. exporting into .sql files then later reimporting), but I do possess the entire data set, so I am hoping there is a way to restore this properly. If anyone can assist or suggest a way of reimporting this data (or converting it to a usable format), it'd be greatly appreciated! Thanks |
If you simply backed up the files in /var/lib/mysql/databasename/ you can restore them fairly easily. Connect to mysql and create a new database..
Code:
CREATE DATABASE databasename; Code:
mysqladmin shutdown Code:
chown mysql.mysql /var/lib/mysql/databasename/* Code:
/etc/init.d/mysql start |
Thanks for your response.
I have tried this, and apparently the data is not read by the forum script I am using (punBB). The data appears in the phpadmin tool I use from the web, which tells me the data is there. Think I'll have to head on over to the punBB forums and see if they have a fix. Ideally what I want to do is convert the existing data to .sql files, so I may import them into appropriate tables... but I don't even know if this will work :( |
All times are GMT -5. The time now is 11:36 PM. |