
01-17-2004, 03:05 AM
|
|
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]
|

01-17-2004, 03:43 AM
|
|
Web Hosting Master
|
|
Join Date: Oct 2003
Posts: 732
|
|
Thanks...
Finally know how to do this..
|

01-17-2004, 03:45 AM
|
|
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.
|

01-17-2004, 06:38 AM
|
|
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.
|

01-17-2004, 04:23 PM
|
|
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.
|

01-17-2004, 04:51 PM
|
|
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.
|

01-17-2004, 05:17 PM
|
|
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 
|

01-17-2004, 09:44 PM
|
|
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).
|

01-19-2004, 03:06 PM
|
|
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 
|

04-07-2004, 06:00 PM
|
|
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.
|

07-04-2004, 11:40 AM
|
|
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.
|

07-04-2004, 01:54 PM
|
|
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 
|

07-04-2004, 02:05 PM
|
|
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.
|

07-04-2004, 09:19 PM
|
|
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)
|

07-12-2004, 09:22 PM
|
|
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?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| 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
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|