Database Dump Question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
slloyd
Forum Members
Forum Members
Posts: 195
Joined: Mon Apr 24, 2006 9:09 pm

Database Dump Question

Post by slloyd »

I'm trying to dump my sql database so that I can move it to another server; however, I don't know exactly what that means and how to do it.

Can someone walk me through the steps to do it? I've searched and searched the internet for detailed instructions, but can't find any. I need to know what to click on and how to name it/save it/dump it.

What I've tried before caused some error when trying to import it again. That makes me think I'm not dumping it correctly.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Database Dump Question

Post by Greg »

Greg
slloyd
Forum Members
Forum Members
Posts: 195
Joined: Mon Apr 24, 2006 9:09 pm

Re: Database Dump Question

Post by slloyd »

I truly appreciate your attempt to help me, but I have no idea what a "cron" is or how to set one up. That's why I asked for detailed instructions on how to dump a database. This seems to be such a simple thing to some people, but to me it's a foreign language.

Is there someone out there that can explain this to an idiot like me?  ???
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Database Dump Question

Post by Dee »

cron is a program used to schedule tasks.
There are several ways to make a database backup and it's a basic administrative task using any db.
Assuming you are using MySQL you can use mysqldump or a web interface to it, like the export function provided by PHPMyAdmin or - probably the easiest - the Mysql Dump module.

Regards,
D
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Database Dump Question

Post by kermit »

phpMyAdmin is an easy web-based way to export & import databases. If you've got it available on both servers, use it.

Here's a quickie walkthrough on exporting and importing databases using phpMyAdmin...



Image
1. login as the database user with privs on the database.. select that database on the left.
Image
2. click on the appropriate link, export or import, at the top


Image
3a. when exporting, be sure to select all tables.
Image
3b. to download the backup, choose 'file' and zip (if desired), then click go to download


Image
4. importing is even easier. just browse to your previously made backup and GO. NOTE: when migrating from one server to another, you'll want to be importing to an empty database.


  • you also need to have a mysql username/password on the new server, and to create a new empty database to have something to import to...  phpmyadmin can do that, but many shared hosts have a separate control panel function (outside of phpmyadmin) for creating databases and database users.
  • TIP: don't dump the hosting account, files or database on the old server until you know everything is working on the new one.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Vin

Re: Database Dump Question

Post by Vin »

There is also a mysql dump module.
slloyd
Forum Members
Forum Members
Posts: 195
Joined: Mon Apr 24, 2006 9:09 pm

Re: Database Dump Question

Post by slloyd »

Thank you to all who responded! I will give it a try.
Post Reply

Return to “CMSMS Core”