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

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

 更新時(shí)間:2009年12月11日 16:45:40   作者:  
最近一次在用phpmyadmin備份mysql數(shù)據(jù)庫(kù)時(shí),沒(méi)有分段大小,一下子備份了一百多M的sql數(shù)據(jù);在導(dǎo)入的時(shí)候,提示超過(guò)2M導(dǎo)入限制,前一段時(shí)間,遇到過(guò)一次,后來(lái)利用網(wǎng)站后臺(tái)的自動(dòng)分段處理了;這次又遇到這個(gè)問(wèn)題,決心解決一下。
到網(wǎng)上搜索了一下前人的解決辦法,大多數(shù)都說(shuō)修改php.ini中的upload_max_filesize,但修改了這個(gè)以后,還是提示這個(gè)問(wèn)題;但phpmyadmin在提示這個(gè)問(wèn)題的時(shí)候,右下角有一行英文提示,大致意思是說(shuō),解決這個(gè)問(wèn)題,可以參考 phpmyadmin文檔;直接點(diǎn)擊這個(gè)鏈接,phpmyadmin自動(dòng)查找到了以下說(shuō)明:

[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.

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

相關(guān)文章

最新評(píng)論