使用php导入mysql dump [英] Import mysql dump using php

查看:73
本文介绍了使用php导入mysql dump的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有mysql转储文件.我如何使用php将该文件导入mysql?

I have mysql dump file. How I can import this file into mysql using php?

推荐答案

确实取决于转储文件的大小.可以使用sql命令添加一小部分.可以使用脚本导入较大的脚本.

Depends on how big the dump file is, really. A small one can just be added with a sql command. A larger one can be imported with a script.

快速搜索将发现许多预制脚本,这些脚本将转储分成较小的块,以免使服务器超载.我过去曾经使用过此代码: http://www.ozerov.de/bigdump.php

A quick search will reveal many pre-made scripts that break down a dump into smaller chunks in order to not overload the server. I have used this one in the past: http://www.ozerov.de/bigdump.php

这篇关于使用php导入mysql dump的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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