Re: [請益] 如何破除phpmyadmin匯入超大.sql檔限制
※ 引述《asklove (問愛)》之銘言:
: 我想用 phpmyadmin 匯入一個很大的.sql檔
: 但每次的結果都不同
: 有時會直接顯示網站出現錯誤,這時候只能把資料表清空重新上傳
: 但有時會像這樣
: 'Script timeout passed, if you want to finish import, please resubmit same
: file and import will resume.
: 這時只要再重新匯入一次就會續傳,很奇怪 XD
: 我也已經把php.ini做了以下的修改:
: --------------------------------------------------
: max_input_time = 3600
: memory_limit = 512M
: post_max_size = 1024M
: upload_max_filesize = 1024M
: max_execution_time = 3600
: --------------------------------------------------
: 請問還有沒有什麼地方是需要設定的呢? 像是apache?
在 phpadmin 目錄底下建一個子目錄 upload/
用別種方式傳到 upload/
再修改 config.inc.php
/**
* Directory for uploaded files that can be executed by phpMyAdmin.
* For example './upload'. Leave empty for no upload directory support.
* Use %u for username inclusion.
*
* @global string $cfg['UploadDir']
*/
$cfg['UploadDir'] = '/path/to/phpmyadmin/upload';
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.250.220
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章