欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

phpmyadmin導入(import)文件限制的解決辦法

 更新時間:2009年12月11日 16:45:40   作者:  
最近一次在用phpmyadmin備份mysql數(shù)據(jù)庫時,沒有分段大小,一下子備份了一百多M的sql數(shù)據(jù);在導入的時候,提示超過2M導入限制,前一段時間,遇到過一次,后來利用網(wǎng)站后臺的自動分段處理了;這次又遇到這個問題,決心解決一下。
到網(wǎng)上搜索了一下前人的解決辦法,大多數(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.

以上文件大致說明的意思就是說,遇到導入過大文件時,首先檢查php.ini 配置文件中的以下三個地方,upload_max_filesize, memory_limit 和post_max_size,并且推薦修改的值要稍大于導入的巨大sql數(shù)據(jù)庫文件;依照這個提示,我修改了以上三個在php.ini中的值以后,重啟了php環(huán)境,再次導入時,雖然 phpmyadmin還是顯示導入最大限制:20,480 KB,但巨大的80M數(shù)據(jù)庫文件已經(jīng)被成功的導入了。

相關文章

最新評論