homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderator: open

Databases Forum

Easy way restoring a database
is there a painless way to do it?

 10:50 am on Jun 24, 2006 (gmt 0)

I was wondering if there are people here who know about restoring databases, in an easy way.
For example, i have a forum database which has to be restored, but it can't be done all the sql file at once, i have to break it into dozen of pieces, and it takes a lot of time

How do you restore your database?



 12:00 pm on Jun 24, 2006 (gmt 0)

This may sound dumb, and possibly is, but my first thought is:
BACK UP EVERYTHING, multiple times, and do that first.
The rest is details. -Larry


 12:39 pm on Jun 24, 2006 (gmt 0)

oh, no no no :) this is not what i meant :)
I know the steps, i did many restores by now, i just want to know if there is any easy way to be done. Any specific tools to be used. For example, all of you use the phpMyAdmin interface for restores?


 1:02 pm on Jun 24, 2006 (gmt 0)

If you have a backup in sql format you can just use the "sql" tab in phpmyadmin and paste your sql in there. It will then populate the database for you with the existing data.

Try this on another database first so you can test the data before using it on a live database.



 9:10 am on Jun 25, 2006 (gmt 0)

problem is that the sql is file very big and it doesn't work this way. is the backup of a phpbb with ~ 25,000 posts


 9:14 am on Jun 25, 2006 (gmt 0)

Ahh yea there is a limit on file size within phpmyadmin.

You might be able to use mysql administrator. It's a free download from the mysql website.

If that fails you might want to have a look into "mysql dump".



 9:33 am on Jun 25, 2006 (gmt 0)

[webmasterworld.com...] the big dump script works a treat.


 5:56 am on Jun 28, 2006 (gmt 0)

If you know how to SSH in with, for example, putty you can do (to back it up):

$mysqldump -uname -ppass --opt dbname > dbname.sql
then you can zip it, scp it to your home computer, whatever.

Then to restore:
$mysql dbname < dbname.sql

There is no limit on file size with this method (unless you're approaching the 2GB limit of some linux operating systems).

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved