hmmm... I just try it somehow... 1. backup/dump ur local database at 1:00 am and 2. ftp the sql script to the server side with a bash script at 2:00 am 3. load the sql script in the server side at 3:00 am.good luck
---多谢各位给想了这么多好办法,只是小弟才疏学浅 一时之间还弄不懂其中的道理, 1. backup/dump ur local database at 1:00 am and 2. ftp the sql script to the server side with a bash script at 2:00 am 3. load the sql script in the server side at 3:00 am.不是已经说得很清楚了。。 :) 比置顶的那个问题,你的问题已经很宽松了。 1。先备份本地数据库,unix/linux下用cronjob,windows下用schedule都可以定时在 早上1点时启动备份的bash或bat文件2。备份数据库要相当的时间,所以定在早上2点,启动另一个bash/bat文件,里面写 上ftp的东东,不超过5行,就可以把刚才备份好的文件传到server上,这也需要一段时间3。在server上3点时启动第三个bat/bash文件,把上传好的文件加载到数据库里。
addition:in the first part, you could even compress the script before upload it to server or download from client/slave to server/master, if the script is huge.
2. ftp the sql script to the server side with a bash script at 2:00 am
3. load the sql script in the server side at 3:00 am.good luck
goldce(goldce)兄弟,应用程序里面具体是怎么实现的?
还有,能不能请几位留下个EMAIL或QQ以便详细讨论,
goldce(goldce) sfply(随风飘零叶) sandyde2(sandy) 几位兄弟
我的QQ是40396120,EMAIL是[email protected] 你们的呢?
期待着向你们深入的学习。
其他人还有没有好的介意呢?小弟多谢了
1. backup/dump ur local database at 1:00 am and
2. ftp the sql script to the server side with a bash script at 2:00 am
3. load the sql script in the server side at 3:00 am.不是已经说得很清楚了。。 :)
比置顶的那个问题,你的问题已经很宽松了。
1。先备份本地数据库,unix/linux下用cronjob,windows下用schedule都可以定时在
早上1点时启动备份的bash或bat文件2。备份数据库要相当的时间,所以定在早上2点,启动另一个bash/bat文件,里面写
上ftp的东东,不超过5行,就可以把刚才备份好的文件传到server上,这也需要一段时间3。在server上3点时启动第三个bat/bash文件,把上传好的文件加载到数据库里。
server or download from client/slave to server/master, if the script is
huge.