您当前的位置: 首页 >  sql

漏刻有时

暂无认证

  • 0浏览

    0关注

    717博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

环境部署:一文测试mysql大文件导入到数据库常见问题及解决方案

漏刻有时 发布时间:2020-07-27 10:26:48 ,浏览量:0

测试环境说明
  1. 本地win7操作系统;
  2. phpstdudy集成环境;
  3. 35M左右大小的.sql文件导入,未分段;
  4. 导入工具:phpMyAdmin;
  5. 导入方式: phpMyAdmin导入菜单,默认导入规则;
  6. 导入时长:这个考察的就是耐心,只要没导入就跟着提示继续导入。
大小上传限制
POST Content-Length of 20001921 bytes exceeds the limit of 8388608 bytes in

提示原因: 内容超出显示,需要修改 php.ini配置文件。

解决方案:

  1. upload_max_filesize 用于限制用户上传单文件的大小
  2. post_max_size 用于限制 POST 请求 body 的大小
超时限制配置
Fatal error: Maximum execution time of 300 seconds exceeded in E:\phpStudy\PHPTutorial\WWW\phpMyAdmin\libraries\dbi\mysqli.dbi.lib.php on line 247

提示原因: php 执行时间越过了配置文件中设置的最大执行时间30秒钟,这不是你的程序本身存在的问题,而 是系统的配置文件问题 解决方案:

  1. php.ini里面的max_execution_time;
  2. phpMyAdmin目录下config.default.php里面,具体位置可能不一样,修改:$cfg[‘ExecTimeLimit’] = 3000;
最崩溃的提示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@php.cn to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
最贴心的红色提示
脚本超时,如果你要完成导入,请重新提交相同的文件,导入将会继续进行。

在这里插入图片描述 解决方案: 这个还需要说吗?选择文件,继续导入呗!

Done!

关注
打赏
1661217259
查看更多评论
立即登录/注册

微信扫码登录

0.0477s