NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [New] restoring a mysql backup from a web to web ( without downloading the backup)

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-31-2007, 01:37 PM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



[New] restoring a mysql backup from a web to web ( without downloading the backup)


[Still in-need to know other methods than the posted below please help]

hello
????: NamePros.com http://www.namepros.com/programming/390595-new-restoring-mysql-backup-web-web.html
i recently moved my site to a new server i moved the files but i still got to move the sql databases
i got a mysql backup of my forums posted online at an address similar to mysite.com/backups/mysql.sql

i need a way to restore this backup without downloading it to my pc and reuploading it using phpmyadmin
i need a faster way
btw i got cpanel 10

summary:
i got a mysql backup on my old server and i want to install it on the new one without downlaoding then reuploading


IMPORTANT THING
i got a script that can copy the sql backup file to the new server but i dont know if i copied the db to the new server where to move the backup to file to what directory


Plz guys help me
Last edited by counter; 11-03-2007 at 06:11 AM.
counter is offline  
Old 10-31-2007, 03:02 PM   #2 (permalink)
Account Closed
 
Alex.'s Avatar
Join Date: Nov 2006
Location: Uk
Posts: 601
Alex. is on a distinguished road
 


Ethan Allen Fund Third World Education
Go into phpmyadmin, and export the data from a database.
Don't click the save as file button.

On the next page, a big textbox full of sql code should appear.
Go to your new server, open phpmyadmin, create a database, click the SQL tab, and copy the commands from the old server's textbox to the textbox on the new server's phpmyadmin page.
Press the rubmit / run / execute button, and the data should be imported into the new database.
Alex. is offline  
Old 10-31-2007, 04:38 PM   #3 (permalink)
www.bpdir.com
 
dezinerite's Avatar
Join Date: Jul 2007
Posts: 3,051
dezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond repute
 



Wildlife Breast Cancer Ethan Allen Fund Tsunami Relief AIDS/HIV
Worked for me! I'm so glad, heheh...thanks!
dezinerite is offline  
Old 10-31-2007, 11:51 PM THREAD STARTER               #4 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



this can work bu the prob is the database is HUGE!
its exeeding the max execution time allowed so i need another way please
[if possible uploading the db as a file to my server and doing a trick to restore the database by coping it to the databases locaton (which i dont know where it is in Cpanel 10)]

please any suggestions
counter is offline  
Old 11-01-2007, 02:18 AM   #5 (permalink)
New Member
Join Date: Oct 2007
Posts: 8
smagik is an unknown quantity at this point
 



read from 1 database -> write the data to the other. A few lines of php code...
smagik is offline  
Old 11-01-2007, 02:31 AM THREAD STARTER               #6 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



am not a super phper i got slight idea about php

please can u help me in setting that script up

thx
counter is offline  
Old 11-02-2007, 11:50 AM THREAD STARTER               #7 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



please any one could help
counter is offline  
Old 11-02-2007, 05:15 PM   #8 (permalink)
NamePros Regular
Join Date: Oct 2006
Posts: 963
neroux has a spectacular aura aboutneroux has a spectacular aura about
 



Do you have shell access on your machines? You could do a database export with mysqldump, then upload/download to/from your new machine and restore the database there.
__________________
Paris loves CityPics

-- Do not let others be treated this way!
neroux is offline  
Old 11-03-2007, 04:01 AM THREAD STARTER               #9 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



dont know how shell stuff work i dont think i got it
but i got a normal full backup backup (its 7gb my new server is much smaller i dont want to send all files)
anyways i got the backup on my server how can i install it
counter is offline  
Old 11-03-2007, 04:11 AM   #10 (permalink)
NamePros Regular
Join Date: Aug 2007
Posts: 280
ds2007 will become famous soon enoughds2007 will become famous soon enough
 



you can do it with free mysql tools like SQLyog
link: http://www.webyog.com

just connect to old database and at "DB" menu you can find "Copy database to different Host/DB" to upload your DB

its a very handy tool for mysql db to edit, update, download etc.

hope it helps
__________________
[English Premier League] [Cartoons]
[Travel Directory][Cricket] Taking offers->cartoonshow/s.tv
ds2007 is offline  
Old 11-03-2007, 04:17 AM THREAD STARTER               #11 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



wowow might be helpful
but do u mean tool is :SQLyog MySQL GUI - Community Edition?
is it a script i got to install on my server to use or a website
counter is offline  
Old 11-03-2007, 04:19 AM   #12 (permalink)
NamePros Regular
Join Date: Aug 2007
Posts: 280
ds2007 will become famous soon enoughds2007 will become famous soon enough
 



Originally Posted by counter
wowow might be helpful
????: NamePros.com http://www.namepros.com/showthread.php?t=390595
but do u mean tool is :SQLyog MySQL GUI - Community Edition?
is it a script i got to install on my server to use or a website
yeah community edition and is a desktop application so you have to download and install in your pc
__________________
[English Premier League] [Cartoons]
[Travel Directory][Cricket] Taking offers->cartoonshow/s.tv
ds2007 is offline  
Old 11-03-2007, 05:25 AM THREAD STARTER               #13 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



thx this is a good program but i faced a problem
i entered the msyql host as ftp.mysite.com
username also entered and password and port as 21 and i tested the connection
it showed this error
i couldnt connect why is that ? this error appeared
Error No. 2013
Lost connection to MySQL server during query


that what i am always getting
counter is offline  
Old 11-03-2007, 05:31 AM   #14 (permalink)
NamePros Regular
Join Date: Aug 2007
Posts: 280
ds2007 will become famous soon enoughds2007 will become famous soon enough
 



Originally Posted by counter
thx this is a good program but i faced a problem
i entered the msyql host as ftp.mysite.com
username also entered and password and port as 21 and i tested the connection
it showed this error
i couldnt connect why is that ? this error appeared
Error No. 2013
Lost connection to MySQL server during query


that what i am always getting
mysql host should be IP of your mysql db
username and password should be of mysql db as well not of ftp
for IP if you dont know then you can check it out with your host
__________________
[English Premier League] [Cartoons]
[Travel Directory][Cricket] Taking offers->cartoonshow/s.tv
ds2007 is offline  
Old 11-03-2007, 05:40 AM THREAD STARTER               #15 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



my host will take ages to reply
is there is anyway i can figure it out ?
counter is offline  
Old 11-03-2007, 05:45 AM   #16 (permalink)
NamePros Regular
Join Date: Aug 2007
Posts: 280
ds2007 will become famous soon enoughds2007 will become famous soon enough
 



if you have access to cpanel then go to "MySql"
after clicking mysql under "Access hosts" you can find the IP
remember you also need IP and user name and password of mysql of new server
__________________
[English Premier League] [Cartoons]
[Travel Directory][Cricket] Taking offers->cartoonshow/s.tv
ds2007 is offline  
Old 11-03-2007, 05:52 AM THREAD STARTER               #17 (permalink)
Account Closed
Join Date: Apr 2007
Posts: 52
counter is an unknown quantity at this point
 



sa


wowowowow
1 sec
i changed the port to 3306
i entered my domain name i think its working but an error is saying ACCESS DENIED with error 1045
how isnt the user and pass same as the cpanel user and pass ?

i need to view all db and not one
Last edited by counter; 11-03-2007 at 06:05 AM. Reason: s
counter is offline  
Old 11-03-2007, 06:19 AM   #18 (permalink)
NamePros Regular
Join Date: Aug 2007
Posts: 280
ds2007 will become famous soon enoughds2007 will become famous soon enough
 



maybe you have used different username and password for mysql db
you can view users or create new one from where you got the ip
__________________
[English Premier League] [Cartoons]
[Travel Directory][Cricket] Taking offers->cartoonshow/s.tv
ds2007 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:20 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger