我如何可以自动使用phpMyAdmin MySQL数据库的出口 [英] How can I automate the exportation of a mySQL database using phpMyAdmin

查看:117
本文介绍了我如何可以自动使用phpMyAdmin MySQL数据库的出口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以自动使用phpMyAdmin单一分贝的出口?

Is it possible to automate the exportation of a single db using phpMyAdmin?

当我尝试从外部脚本创建.sql文件,如PHP,产生的.sql文件看起来干净,但导入时会导致应用程序中的问题。

When I try creating the .sql file from an external script, like php, the resulting .sql file looks clean, but when imported causes problems in the application.

当我使用phpMyAdmin通过出口,由此产生的.sql文件导入而不会造成任何问题,我的应用程序创建一个类似的.sql文件。

When I use phpMyAdmin to create a similar .sql file by using Export, the resulting .sql file Imports without causing any issues to my application.

该应用程序的Moodle 2.2,MySQL的版本是5.5,phpMyAdmin的版本为3.4.10。

The application is moodle 2.2, the MySQL version is 5.5, the phpMyAdmin version is 3.4.10.

推荐答案

最好的办法是让与的 mysqldump的,之后一个cronjob执行该脚本。

The best option is to make a script that executes database export with mysqldump and after that a cronjob to execute that script.

这篇关于我如何可以自动使用phpMyAdmin MySQL数据库的出口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆