<small id='ubmzp'></small><noframes id='ubmzp'>

      <tfoot id='ubmzp'></tfoot>
      <i id='ubmzp'><tr id='ubmzp'><dt id='ubmzp'><q id='ubmzp'><span id='ubmzp'><b id='ubmzp'><form id='ubmzp'><ins id='ubmzp'></ins><ul id='ubmzp'></ul><sub id='ubmzp'></sub></form><legend id='ubmzp'></legend><bdo id='ubmzp'><pre id='ubmzp'><center id='ubmzp'></center></pre></bdo></b><th id='ubmzp'></th></span></q></dt></tr></i><div id='ubmzp'><tfoot id='ubmzp'></tfoot><dl id='ubmzp'><fieldset id='ubmzp'></fieldset></dl></div>

      1. <legend id='ubmzp'><style id='ubmzp'><dir id='ubmzp'><q id='ubmzp'></q></dir></style></legend>
        • <bdo id='ubmzp'></bdo><ul id='ubmzp'></ul>

        如何使用 phpmyadmin 自动备份数据库

        How to automate database backup using phpmyadmin(如何使用 phpmyadmin 自动备份数据库)
      2. <legend id='AJ1Es'><style id='AJ1Es'><dir id='AJ1Es'><q id='AJ1Es'></q></dir></style></legend>
        1. <tfoot id='AJ1Es'></tfoot>

              <small id='AJ1Es'></small><noframes id='AJ1Es'>

                <bdo id='AJ1Es'></bdo><ul id='AJ1Es'></ul>

              • <i id='AJ1Es'><tr id='AJ1Es'><dt id='AJ1Es'><q id='AJ1Es'><span id='AJ1Es'><b id='AJ1Es'><form id='AJ1Es'><ins id='AJ1Es'></ins><ul id='AJ1Es'></ul><sub id='AJ1Es'></sub></form><legend id='AJ1Es'></legend><bdo id='AJ1Es'><pre id='AJ1Es'><center id='AJ1Es'></center></pre></bdo></b><th id='AJ1Es'></th></span></q></dt></tr></i><div id='AJ1Es'><tfoot id='AJ1Es'></tfoot><dl id='AJ1Es'><fieldset id='AJ1Es'></fieldset></dl></div>
                  <tbody id='AJ1Es'></tbody>
                • 本文介绍了如何使用 phpmyadmin 自动备份数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前正在使用 phpmyadmin 导出作为 sql 转储手动进行数据库备份,结果文件名将是 spbkYYMMDD(Y;year m:month D:day).有什么方法可以自动化数据库备份,以便我获得 sql定期转储,文件名应该会自动生成相应的.你能解释一下逻辑吗.

                  I am currently taking database backup manually using phpmyadmin export as a sql dump,the resulted file name will be spbkYYMMDD(Y;year m:month D:day).Is there any way to automate db backup so that i get sql dump for regular intervals and the file name should automatically generated correspondingly .can you explain me the logic.

                  推荐答案

                  在 unix shell 中运行 crontab 并创建规则以启动创建数据库备份的过程

                  Run crontab in unix shell and create the rule to launch process for creating database backup

                   0 0 * * * /usr/local/bin/mysqldump -uLOGIN -PPORT -hHOST -pPASS DBNAME | gzip -c > `date "+\%Y-\%m-\%d"`.gz
                  

                  还要检查这个

                  编辑

                  Web 界面你只需要编写,不要认为你可以找到一个现成的代码.但是您需要使用 cron 作业来自动执行在 unix 机器上定期运行的功能.您可以在此处找到有关如何编写 cron-job 的更多信息.所以你现在只需要写一个web界面,它从用户那里获取数据并根据输入改变规则(我认为你可以自己做)

                  The web interface you only have to write, dont think you can find a readymade code for that. But You need to use cron job, to automate a function to run at regular intervals in a unix machine. You can find more info on how to write a cron-job here. So you now, just need to write a web interface, which gets data from user and changes the rule according to the input(Which I think you can do it yourselves)

                  这篇关于如何使用 phpmyadmin 自动备份数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                  Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                  PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                  How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                  get a # from a url in php(从 php 中的 url 获取 #)
                  PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                    <tfoot id='yH96v'></tfoot>
                  • <legend id='yH96v'><style id='yH96v'><dir id='yH96v'><q id='yH96v'></q></dir></style></legend>

                    <small id='yH96v'></small><noframes id='yH96v'>

                        • <bdo id='yH96v'></bdo><ul id='yH96v'></ul>
                          1. <i id='yH96v'><tr id='yH96v'><dt id='yH96v'><q id='yH96v'><span id='yH96v'><b id='yH96v'><form id='yH96v'><ins id='yH96v'></ins><ul id='yH96v'></ul><sub id='yH96v'></sub></form><legend id='yH96v'></legend><bdo id='yH96v'><pre id='yH96v'><center id='yH96v'></center></pre></bdo></b><th id='yH96v'></th></span></q></dt></tr></i><div id='yH96v'><tfoot id='yH96v'></tfoot><dl id='yH96v'><fieldset id='yH96v'></fieldset></dl></div>
                              <tbody id='yH96v'></tbody>