If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL database replication between sersvers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-03, 07:59
TimoV TimoV is offline
Registered User
 
Join Date: Dec 2003
Posts: 56
MySQL database replication between sersvers

I have a website being hosted. It has a MySQL db. I am running a webserver at home with a copy of the website for testing etc. IS there an easy way to cpy the db from on to the other? Droopping the data+structure works, except for one table which is to big to reload (get time out problems).

Is there a way to reload via the commandline instead of PHP for instance?

On the webhosting site I only have a PHPMyAdmin type interface. I can't shell to access the db
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 21:44
kellewic kellewic is offline
Registered User
 
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 8
drop table TABLE;
load table TABLE from master;
Reply With Quote
  #3 (permalink)  
Old 01-14-04, 09:17
zengelan zengelan is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
Re: MySQL database replication between sersvers

hi,

if you don't have commandline access then there is no other way as using php.

you can use the set_time_limit(XX) command in php to set the time limit of a php script to unlimited(X=0), or if you are in a loop you can use the set_time_limit inside the loop. in every call the time limit counter is reseted.

check out php documentation http://de2.php.net/manual/en/functio...time-limit.php
Reply With Quote
  #4 (permalink)  
Old 01-15-04, 22:23
donsimon donsimon is offline
Registered User
 
Join Date: Jan 2004
Posts: 24
Actually it's pretty easy. Use one of the newer version of PHPMyAdmin and just make sure you use the database export option and choose compression of your choice. I just exported a 15 gig database to make sure that it worked fine and it worked for me.

Then on your local box uncompress the dump and drop it in on your hosted server and you are all done.

Donny
__________________
http://www.phpscripts.com/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On