十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊
量身定制 + 運(yùn)營維護(hù)+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
這篇文章給大家分享的是有關(guān)phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件的解決方法的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件的解決辦法:首先修改【php.ini】中的【upload_max_filesize】;然后修改相關(guān)的配置文件;接著讓修改的值要稍大于導(dǎo)入的sql數(shù)據(jù)庫文件;最后重啟php環(huán)境即可。
phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件的解決辦法:
大多數(shù)都說修改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 things to check (or ask your host provider 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 submitted and handled by PHP. One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize.
以上文件大致說明的意思就是說,遇到導(dǎo)入過大文件時,首先檢查php.ini 配置文件中的以下三個地方,upload_max_filesize
,memory_limit
和post_max_size
,并且推薦修改的值要稍大于導(dǎo)入的巨大sql數(shù)據(jù)庫文件。
依照這個提示,我修改了以上三個在php.ini中的值以后,重啟 了php環(huán)境,再次導(dǎo)入時,雖然phpmyadmin還是顯示導(dǎo)入較大限制:20,480 KB,但巨大的80M數(shù)據(jù)庫文件已經(jīng)被成功的導(dǎo)入了。
所用phpMyAdmin的版本為 2.8.1,環(huán)境:APMServ 5.1.2
感謝各位的閱讀!關(guān)于“phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件的解決方法”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!