zoukankan      html  css  js  c++  java
  • mysql导入数据库文件最大限制更改解决方法You probably tried to upload too large file

    最近一次在用phpmyadmin导入mysql数据库时,偶的15M的数据库不能导入,mysql数据库最大只能导入2M..

    phpmyadmin数据库导入出错:
    You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.

    可以修改导入数据库文件最大限制吗?

    到网上搜索了一下前人的解决办法,大多数都说修改php.ini中的upload_max_filesize,但修改了这个以后,还是提示这个问题;但phpmyadmin在提示这个问题的时候,右下角有一行英文提示,大致意思是说,解决这个问题,可以参考phpmyadmin文档;直接点击这个链接,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.

    以上文件大致说明的意思就是说,遇到导入过大文件时,首先检查php.ini 配置文件中的以下三个地方,upload_max_filesize, memory_limit 和post_max_size,并且推荐修改的值要稍大于导入的巨大sql数据库文件.

    解决方法很简单:

    在php.ini配置文件中查找以下三个地方:

    upload_max_filesize, memory_limit 和post_max_size

    修改其值大于被导入的数据库文件即可(至此配置完成)

    重启php环境,注意是重启所有服务,然后就可以导入啦

  • 相关阅读:
    【简报】一款使用静态图片生成动画的jQuery插件:JZoopraxiscope
    使用jQuery timelinr和animate.css创建超酷的CSS动画时间轴特效
    超酷信息图分享:你属于哪类geek?
    数据库操作优化
    android R.java aapt
    xml sax 解析 & 符号
    sql server2000 完全卸载
    cmd 命令总结
    手动打包 解释
    bat 执行 java jar包
  • 原文地址:https://www.cnblogs.com/aqxinzhuan/p/3038548.html
Copyright © 2011-2022 走看看