首頁  >  文章  >  資料庫  >  phpMyAdmin無法匯入大的資料庫檔案怎麼辦?

phpMyAdmin無法匯入大的資料庫檔案怎麼辦?

coldplay.xixi
coldplay.xixi原創
2020-07-20 16:01:462122瀏覽

phpMyAdmin無法匯入大的資料庫檔案的解決方法:先修改【php.ini】中的【upload_max_filesize】;然後修改相關的設定檔;接著讓修改過的值要稍大於匯入的sql資料庫檔案;最後重啟php環境即可。

phpMyAdmin無法匯入大的資料庫檔案怎麼辦?

phpMyAdmin無法匯入大的資料庫檔案的解決方案:

大多說修改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. 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 submit and handle_by maximum sizes data that can be submit and handle_by saidsaidsad sad. be larger than upload_max_filesize.

以上檔案大致說明的意思是說,遇到導入過大檔案時,先檢查php.ini 設定檔中的以下三個地方,

upload_max_filesize, memory_limitpost_max_size,並且推薦修改的值要稍大於匯入的巨大sql資料庫檔案。

依照這個提示,我修改了以上三個在php.ini中的值以後,重啟了php環境,再次導入時,雖然phpmyadmin還是顯示導入最大限制:20,480 KB,但巨大的80M資料庫文件已經被成功的導入了。

所使用phpMyAdmin的版本為 2.8.1,環境:APMServ 5.1.2

相關教學推薦:

phpmyadmin

#

以上是phpMyAdmin無法匯入大的資料庫檔案怎麼辦?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn