duanli9591 2016-08-31 09:19
浏览 71

尝试将大文件.txt导入MysQL时出错500

We're using Yii framework for an internal tool.

What we have now : The user select a file .txt to upload on the server. The server clean the text file because it containts lots of characters such as """ and ;;;;

But when comes the time to import to database, server sends a 500 internal error with no more information.

The file size is 8.1 mo. The import seems to work if we delete manually some rows in order to make the file at less than 7 mo.

We took a look at the php.ini file and increased all the limits.

What is weird is that we made local server with easyphp (same config in php.ini) and it works.

Do you have an idea ??

Thanks !

  • 写回答

3条回答 默认 最新

  • dsajdgjadwqe3247382 2016-08-31 09:25
    关注

    With the information's you have provided, I can only suggest that turn on error_reporting and display_errors in your php.ini file. Increase maximum execution time and then see if any error displays or not?

    Also do you have access to your log files in server? Then check php error_log for more information.

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?