phpmyadmin導(dǎo)入(import)文件限制的解決辦法
更新時(shí)間:2009年12月11日 16:45:40 作者:
最近一次在用phpmyadmin備份mysql數(shù)據(jù)庫時(shí),沒有分段大小,一下子備份了一百多M的sql數(shù)據(jù);在導(dǎo)入的時(shí)候,提示超過2M導(dǎo)入限制,前一段時(shí)間,遇到過一次,后來利用網(wǎng)站后臺的自動分段處理了;這次又遇到這個(gè)問題,決心解決一下。
到網(wǎng)上搜索了一下前人的解決辦法,大多數(shù)都說修改php.ini中的upload_max_filesize,但修改了這個(gè)以后,還是提示這個(gè)問題;但phpmyadmin在提示這個(gè)問題的時(shí)候,右下角有一行英文提示,大致意思是說,解決這個(gè)問題,可以參考 phpmyadmin文檔;直接點(diǎn)擊這個(gè)鏈接,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)入過大文件時(shí),首先檢查php.ini 配置文件中的以下三個(gè)地方,upload_max_filesize, memory_limit 和post_max_size,并且推薦修改的值要稍大于導(dǎo)入的巨大sql數(shù)據(jù)庫文件;依照這個(gè)提示,我修改了以上三個(gè)在php.ini中的值以后,重啟了php環(huán)境,再次導(dǎo)入時(shí),雖然 phpmyadmin還是顯示導(dǎo)入最大限制:20,480 KB,但巨大的80M數(shù)據(jù)庫文件已經(jīng)被成功的導(dǎo)入了。
[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)入過大文件時(shí),首先檢查php.ini 配置文件中的以下三個(gè)地方,upload_max_filesize, memory_limit 和post_max_size,并且推薦修改的值要稍大于導(dǎo)入的巨大sql數(shù)據(jù)庫文件;依照這個(gè)提示,我修改了以上三個(gè)在php.ini中的值以后,重啟了php環(huán)境,再次導(dǎo)入時(shí),雖然 phpmyadmin還是顯示導(dǎo)入最大限制:20,480 KB,但巨大的80M數(shù)據(jù)庫文件已經(jīng)被成功的導(dǎo)入了。
您可能感興趣的文章:
- PhpMyAdmin中無法導(dǎo)入sql文件的解決辦法
- phpmyadmin里面導(dǎo)入sql語句格式的大量數(shù)據(jù)的方法
- 實(shí)戰(zhàn)mysql導(dǎo)出中文亂碼及phpmyadmin導(dǎo)入中文亂碼的解決方法
- phpMyAdmin下將Excel中的數(shù)據(jù)導(dǎo)入MySql的圖文方法
- php中比較簡單的導(dǎo)入phpmyadmin生成的sql文件的方法
- PHPMYADMIN導(dǎo)入數(shù)據(jù)最大為2M的解決方法
- 解決PhpMyAdmin中導(dǎo)入2M以上大文件限制的方法分享
- 如何解決phpmyadmin導(dǎo)入數(shù)據(jù)庫文件最大限制2048KB
相關(guān)文章
PHP 實(shí)現(xiàn)base64編碼文件上傳出現(xiàn)問題詳解
這篇文章主要介紹了PHP 實(shí)現(xiàn)base64編碼文件上傳出現(xiàn)問題詳解,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-09-09php中array_column函數(shù)簡單實(shí)現(xiàn)方法
這篇文章主要介紹了php中array_column函數(shù)簡單實(shí)現(xiàn)方法,結(jié)合實(shí)例形式簡單分析了array_column函數(shù)的功能,并針對低版本的情況給出了array_column函數(shù)的實(shí)現(xiàn)代碼,需要的朋友可以參考下2016-07-07PHP中獲取內(nèi)網(wǎng)用戶MAC地址(WINDOWS/linux)的實(shí)現(xiàn)代碼
做一個(gè)內(nèi)網(wǎng)根據(jù)MAC地址自動登錄的應(yīng)用,在WINDOW 2003可以正常使用,函數(shù)如下2011-08-08PHP入門教程之日期與時(shí)間操作技巧總結(jié)(格式化,驗(yàn)證,獲取,轉(zhuǎn)換,計(jì)算等)
這篇文章主要介紹了PHP入門教程之日期與時(shí)間操作技巧,結(jié)合實(shí)例形式總結(jié)分析了php針對日期與時(shí)間的驗(yàn)證、格式化、獲取、轉(zhuǎn)換、計(jì)算等相關(guān)操作技巧,需要的朋友可以參考下2016-09-09PHP將Excel導(dǎo)入數(shù)據(jù)庫及數(shù)據(jù)庫數(shù)據(jù)導(dǎo)出至Excel的方法
這篇文章主要介紹了PHP將Excel導(dǎo)入數(shù)據(jù)庫及數(shù)據(jù)庫數(shù)據(jù)導(dǎo)出至Excel的方法,涉及php操作數(shù)據(jù)庫及Excel的相關(guān)技巧,需要的朋友可以參考下2015-06-06在php中判斷一個(gè)請求是ajax請求還是普通請求的方法
如何在php中判斷一個(gè)網(wǎng)頁請求是ajax請求還是普通請求?你可以通過傳遞參數(shù)的方法來實(shí)現(xiàn),例如使用如下網(wǎng)址請求2011-06-06