![]() |
Help me restore by database
Hi
I had a major breakdown of the linux server 4 days ago , yesterday however I've managed with the guys from the hosting company to recover some data from the crashed hdd. I basically got the entire httpdocs folder , including all the forum files + the complete forum database located in /var/lib/mysql/forumname the files located in this folder /var/lib/mysql/forumname look like this: access.frm access.MYD access.MYI .... etc. Now the server got a new HDD, everything was reinstalled from zero. I've set up the server again from Plesk CP, created a new mysql database with the same name like the old one, same username & password to access the mysql database. After, I went to /var/lib/mysql/forumname and put back all the previously saved files and I hoped it will work. It doesn't work. I got Database error when trying to access the forum. What am I doing wrong ? Daniel |
You may have to go into your database (through phpMyAdmin or cPanel) and repair/optimize the tables.
Do you not have an actual real backup of the site - a mysqldump? |
no. no mysqldump backup.
--------------- Added [DATE]1202752564[/DATE] at [TIME]1202752564[/TIME] --------------- Any other hints ? I know I'm dumb for not keeping a proper database backup but I really need your help |
If I am not wrong, those are raw database backup files, so you cannot restore them from phpmyadmin, but only from SSH.
I think your hosting guys can do that restore pretty easily. Regards, Val. |
Quote:
In your case (as described above), you have an RPM installed MySQL as the data directory is located at /var/lib/mysql/forumname so within that directory, you should have a folder for each database and within that specific DB folder is where those files should be located.. NOW, you mentioned that you "created a new mysql database with the same name like the old one" Is there now a Folder in the var/lib/mysql/forumname directory with that database name? if so, move all those .frm .MYI and .MYD files into that directory. the .frm files are called Form Files. They describe the structure of the table (its Columns, column types, indexes and so forth) the Data Files .MYD (MyISAM) OR .ISD (ISAM) contain the table's data -- that is, its rows the Index files .MYI (MyISAM) OR .ISM (ISAM) contain the index trees from any indexes on the data file. The index file exists whenther or not the table has any indexes... Let me know if you have a database sub folder for the new data base you created (or if there are any other sub folders in the /var/lib/mysql folder. --------------- Added [DATE]1202759912[/DATE] at [TIME]1202759912[/TIME] --------------- Quote:
|
Quote:
Quote:
|
Quote:
THAT is HUGE issue if that is missing.. |
You dont need to replace the mysql folder, once mysql is installed, the folder & mysql default db will be installed and operational, you just need to set the root mysql passwd, then open your vb config.php file and add your user info back via mysql cmd line or using phpmyadmin.
|
Tried both. No results. Is it possible that some files might have been transferred as corupt ?
|
Quote:
Did you reinstall mysql as Snakes suggested? By doing that, you will at least know that all the working guts of mysql are present and working.. then it would just be a matter of creating the database again (which will create a empty subfolder in the data directory) and then put all of those files in that folder. I just made 3 clones of my DB by simply copying all of the files out of my main DB, created 3 new DBs from phpmyadmin .. then copied all the files into those 3 new folders. The all worked perfectly. |
All times are GMT. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|