hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Programming Tutorials : Move a MySQL Database from one host to another using phpMyAdmin
Reply

Programming Tutorials How-Tos related to programming, databases, and the like.
Forum Jump

Move a MySQL Database from one host to another using phpMyAdmin

Reply Post New Thread In Programming Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-17-2004, 03:05 AM
BF-Gary BF-Gary is offline
Blue, Furry and Comfortable
 
Join Date: Aug 2003
Location: Vancouver, BC
Posts: 1,891

Move a MySQL Database from one host to another using phpMyAdmin


The following are the steps to Export and then Import a MySQL database usnig phpMyAdmin

Export from phpMyAdmin
[list=1][*]Open cPanel and open your phpMyAdmin [*]On the welcome screen you will see an Export option click on this link [*]This will bring up the view dump (schema) of databases screen [*]Select the tables you wish to be exported from the list [*]Ensure you choose SQL as the option (this will alow you to just paste the SQL for your next host) [*]It will create text file on the screen, highlight the information and paste it into a text document. Save this for when you get hosting.[/list=1]

Import to phpMyAdmin[list=1][*]Open cPanel and open your phpMyAdmin [*]On the welcome screen you will see an Query window option (lower left corner) click on this link [*]Paste the contents of the text file that you exported and done. Your database and it's contents are moved.[/list=1]

Reply With Quote


Sponsored Links
  #2  
Old 01-17-2004, 03:43 AM
DT-Spirit DT-Spirit is offline
Web Hosting Master
 
Join Date: Oct 2003
Posts: 732
Thanks...
Finally know how to do this..

Reply With Quote
  #3  
Old 01-17-2004, 03:45 AM
AFMichael AFMichael is offline
Web Hosting Master
 
Join Date: Nov 2003
Location: United States
Posts: 1,231
Thank you, monster123 for this how-to. I think this will be the easiest way for me to explain it to my clients when they move over to us.

Reply With Quote
Sponsored Links
  #4  
Old 01-17-2004, 06:38 AM
kikonoro kikonoro is offline
Junior Guru Wannabe
 
Join Date: Jun 2003
Location: Australia
Posts: 43
thank you very mich for this. I have had trouble with this for a while now and you make it osund so easy. Thnx.

Reply With Quote
  #5  
Old 01-17-2004, 04:23 PM
Akash Akash is offline
Web Hosting Master
 
Join Date: Jan 2001
Location: Illinois, USA
Posts: 7,147
Thanks monster123, your How-To has been approved!

It will go in the Programming How-To Forum when I create it.

Reply With Quote
  #6  
Old 01-17-2004, 04:51 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305
I have found this to be very ineffective and time consuming for databases over 10 MB.

Reply With Quote
  #7  
Old 01-17-2004, 05:17 PM
Akash Akash is offline
Web Hosting Master
 
Join Date: Jan 2001
Location: Illinois, USA
Posts: 7,147
Perhaps you could write a how-to to do this via SSH

Reply With Quote
  #8  
Old 01-17-2004, 09:44 PM
XYPHEN XYPHEN is offline
Disabled
 
Join Date: Nov 2002
Location: ON, Canada
Posts: 288
Thank you for sharing this with us, are we allowed to use these How-To's ? If I provide a link saying How-To thanks to Name(URL).

Reply With Quote
  #9  
Old 01-19-2004, 03:06 PM
aqi32 aqi32 is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 1,067
when you backup a database through cpanel does it backup the whole database like through phpmyadmin (table structure and data) or is it just the data?

cheers

Reply With Quote
  #10  
Old 04-07-2004, 06:00 PM
Tom|420 Tom|420 is offline
Junior Guru
 
Join Date: Jun 2002
Location: Sherbrooke, Québec
Posts: 182
Re: Move a MySQL Database from one host to another using phpMyAdmin

Even better is to save the the data to a file, and transfer the file directly to the new host (using the file input form just below the query form). That way the client has a backup, and he has no more excuse not to have a backup when something gets screwed up.

Reply With Quote
  #11  
Old 07-04-2004, 11:40 AM
cpbb cpbb is offline
Newbie
 
Join Date: Jun 2004
Location: UK
Posts: 27
phpMyAdmin has a size limit of 2 megs I think, it caught us out when moving a DB, in which case you need to do it via shell.

Reply With Quote
  #12  
Old 07-04-2004, 01:54 PM
twhiting9275 twhiting9275 is offline
Who am I?
 
Join Date: Sep 2002
Location: Among the corn
Posts: 9,638
yeah, and there's a howto on that one as well already

Reply With Quote
  #13  
Old 07-04-2004, 02:05 PM
cpbb cpbb is offline
Newbie
 
Join Date: Jun 2004
Location: UK
Posts: 27
Yeah I looked at that, if you have a DB with large data in a field then you can come across problems with the import, sometimes you have to split the import or adjust MySQL accordingly with a command line switch..

BTW you can export any size data from phpMyadmin as far as I can tell, its just the import size thats restricted.

Reply With Quote
  #14  
Old 07-04-2004, 09:19 PM
Tom|420 Tom|420 is offline
Junior Guru
 
Join Date: Jun 2002
Location: Sherbrooke, Québec
Posts: 182
Of course there are two limits at importing data into phpMyAdmin:

1) PHP file upload size limit, when uploading the file (default is 2 MB I think)
2) Post size limit, as set into both the browser and the server (this one is probably a few mega-bytes, not much more -- there are colored discussions everwhere about what exactly is the limit here)

Reply With Quote
  #15  
Old 07-12-2004, 09:22 PM
cbhq cbhq is offline
Newbie
 
Join Date: Jul 2004
Location: Newport, South Wales
Posts: 7
Any ideas how one could move larger dbs when you dont have external access to the database?

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Host Savvis Extends Cloud-Based Database Platform to European Customers Web Hosting News 2012-10-12 11:06:37
Web Hosting Sales and Promos Roundup - September 21, 2012 Web Hosting News 2012-09-21 17:16:30
Amazon Adds New Tools to Cloud for Windows Developers Web Hosting News 2012-05-09 14:28:09
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?