目录
  • 网站素材
  • PS素材
  • 成语素材
  • 图片素材
  • 名字素材
  • 签名素材
  • 头像素材
  • 技术笔记
  • 首页 > 网站素材 / 正文

    phpMyAdmin 数据库导入超过大小限制 解决办法

    素材 网站素材 素材网 www.bdqn.cc
    数据库导入的时候提示cannot upload big dump files (memory, HTTPHTTP or timeout problems)
    查了phpMyAdmin的英文说明书,介绍如下:

    1.16 I cannot upload big dump files (memory, HTTP or timeout problems).
    Starting with version 2.7.0, the import engine has been re–written and these problems should not occur. If possible, upgrade your phpMyAdmin to the latest version to take advantage of the new import features.

    The first things to check (or ask your host provider to check) are the values of upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP. One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize.

    There exist several workarounds if your upload is too big or your hosting provider is unwilling to change the settings:

    Look at the $cfg['UploadDir'] feature. This allows one to upload a file to the server via scp, ftp, or your favorite file transfer method. PhpMyAdmin is then able to import the files from the temporary directory. More information is available in the Configuration section of this document.

    Using a utility (such as BigDump) to split the files before uploading. We cannot support this or any third party applications, but are aware of users having success with it.

    If you have shell (command line) access, use MySQL to import the files directly. You can do this by issuing the "source" command from within MySQL: source filename.sql.


    最后用“If you have shell (command line) access, use MySQL to import the files directly. You can do this by issuing the "source" command from within MySQL: source filename.sql. ”解决了办法。将你的SQL文件拷进MYSQL的BIN文件夹里,“filename.sql”就为你的sql文件名字。
    用开始菜单的“MySQL Command Line Client”,输入密码,进入MySQL,然后用use dataname,进入数据库dataname,然后用source filename.sql就开始等吧。一条一条的,很慢……

    TAGS : 

    标签列表

    我的素材网 www.bdqn.cc