Home  >  Article  >  Database  >  PhpMyAdmin 导入大数据库文件

PhpMyAdmin 导入大数据库文件

WBOY
WBOYOriginal
2016-06-07 17:20:271065browse

搭建了LNMP成功之后,通过PhpMyAdmin导入数据库文件,提示文件内容太大。在 phpmyadmin 下面建立 upload 和 save 目录, 在客户端

搭建了LNMP成功之后,通过PhpMyAdmin导入数据库文件,提示文件内容太大。

修改了 php.ini 里面的

upload_max_filesize = 30M

post_max_size = 40M

还是没有用。可以通过如下方式解决:

修改phpmyadmin 下面的 config.inc.php 文件

$cfg['UploadDir'] = ‘  ’ ;
$cfg['SaveDir'] = ‘  ’;

修改:

$cfg['UploadDir'] = ‘upload’;
$cfg['SaveDir'] = ‘save’;

在 phpmyadmin 下面建立 upload 和 save 目录, 在客户端把数据库文件通过ftp传到服务器上的 upload目录,然后通过 phpmyadmin 登入进去,导入数据库的时候,,就会出现一个上传本地数据库文件的选项。

这时候就能成功导入了!

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn