DreamHost Web Hosting
Discussion Forum


Forums
   >> General Troubleshooting
*Threaded Mode

Subject Restoring A Database  
Posted byLordOfChaos (DH New User )
Posted on06/18/06 12:08 PM



Hey guys, trying to restore a mysql database for my IPB forum. I've got the .sql file which I got from phpmyadmin from my old host, and now I've moved here, how do I upload that into my database?

I have the database made, I just need to upload all the tables and data etc, how would I do this in the control panel?



Subject Re: Restoring A Database new [re: LordOfChaos]  
Posted byecvej (DH New User )
Posted on06/18/06 12:16 PM



Do the reverse of what you did with your old isp: Log into phpmyadmin and click import instead of export. I'll trust you can follow the onscreen instructions rather than me talk you all the way through it.



Subject Re: Restoring A Database new [re: LordOfChaos]  
Posted bysdayman (DH Enthusiast)
Posted on06/18/06 01:28 PM



It's possible that you may have to edit that .sql file so it contains proper information for your new database setup. This info is somewhere in the first 20 or so lines of your .sql file.

-Scott


Subject Re: Restoring A Database new [re: LordOfChaos]  
Posted byRaz2133 (DH Grizzled Veteran)
Posted on06/18/06 10:04 PM



In reply to:

how would I do this in the control panel?


Note that if your DB file is larger than 7MB or so, you may not be able to restore it using phpmyadmin, due to the default upload file size limit of the PHP installation.

If this is the case, you will need to log-in using SSH to restore the DB.

Mark

--
Save $50 on DreamHost hosting using promo code SAVEMONEY ( Click for promo code details )

Subject Re: Restoring A Database new [re: Raz2133]  
Posted bymatttail (DH Pooh-Bah)
Posted on06/18/06 10:07 PM



See the wiki article called 'migrate mysql' it will walk you through the process.



--Matttail
art.googlies.net - personal website


Subject Re: Restoring A Database new [re: LordOfChaos]  
Posted byLordOfChaos (DH New User )
Posted on06/20/06 10:55 PM



Thanks guys, I'm just stupid and forgot that it's accessed by yourdb.yourdomain.com :P

Cheers




*Threaded Mode
Jump to