|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Replicating/Synchronising Local and Remote Database
Hi guys,
Have a local database (full access) that I need to periodically export to a remote one (very limited cpanel/phpmyadmin access). I insert, update and delete data in the local one and this all needs to be carried across in the remote one - am not fussed if the actual statements are used, just as long as the end result is the same. Unfortunately, having very limited access to the remote server means I can't implement replication or any of the other solutions I've seen online/in this forum/on mysql site. For example, I don't have the ability to exit the mysql cnf files, restart the server, specify privileges for users... The two most likely solutions at this stage seem to be:
I don't have access to the mysql/data folder on the remote server, though. So would need to find out from the person who administers my own account if he has access. So in the end, empty and re-insert (should I just call it "thrust" :P) seems to be the most viable option at this stage. I'd be thrusting about 10000-15000 records across 5 tables each time, though... but I'd only need to do it once a day or once a week. Does this look like a viable solution, or can anyone suggest a better one? Thanks ![]() |
|
#2
|
||||
|
||||
|
Quote:
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) Understanding SQL Joins An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries |
|
#3
|
|||
|
|||
|
deleted post since it seems to have duplicated itself
Last edited by kefka : May 4th, 2008 at 04:41 AM. |
|
#4
|
|||
|
|||
|
Quote:
Looks handy, thanks for that. Am just curious about the setting up of the federated table - in particular, the bit where I need to set up the connection: PHP Code:
It creates the table, but comes up with an error saying "Incorrect table name" in regards to the connection line... Also, I take it that the federated tables I create on the local server will need to be the ones used for my local copy of the database? So I would need to recreate an identical but federated-version of the database to get things rolling? Any ideas? Am testing how well the "thrust" strategy - seems to work fine... most of the time it takes is simply uploading the sql script file to the server. And I'll not be updating it super frequently after the first few weeks... Thanks again ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Replicating/Synchronising Local and Remote Database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|