总的来说这是比较麻烦的
因为远程数据库控制起来不是那么容易,不象ACCESS上传一个数据库文件就行
帮你UP

解决方案 »

  1.   

    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
      

  2.   

    多谢各位给想了这么多好办法,只是小弟才疏学浅 一时之间还弄不懂其中的道理,
     goldce(goldce)兄弟,应用程序里面具体是怎么实现的?
    还有,能不能请几位留下个EMAIL或QQ以便详细讨论,
    goldce(goldce)  sfply(随风飘零叶)  sandyde2(sandy) 几位兄弟
    我的QQ是40396120,EMAIL是[email protected] 你们的呢?
    期待着向你们深入的学习。
    其他人还有没有好的介意呢?小弟多谢了
      

  3.   

    ---多谢各位给想了这么多好办法,只是小弟才疏学浅 一时之间还弄不懂其中的道理,
    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文件,把上传好的文件加载到数据库里。
      

  4.   

    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.