Re: [請益] 如何破除phpmyadmin匯入超大.sql檔限制

看板PHP作者 (Powered by Zend Engine2)時間16年前 (2009/03/17 23:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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
文章代碼(AID): #19lxr9y2 (PHP)
文章代碼(AID): #19lxr9y2 (PHP)