修改mysql导入sql大小限制_修改phpMyAdmin导入SQL文件的大小限制
用phpMyAdmin導(dǎo)入mysql數(shù)據(jù)庫時(shí),我的19M的數(shù)據(jù)庫不能導(dǎo)入,提示mysql數(shù)據(jù)庫最大只能導(dǎo)入2M。
phpMyAdmin數(shù)據(jù)庫導(dǎo)入出錯(cuò):
You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.
可以修改導(dǎo)入數(shù)據(jù)庫文件最大限制嗎?
到網(wǎng)上搜索了一下前人的解決辦法,大多數(shù)都說修改php.ini中的upload_max_filesize,但修改了這個(gè)以后,還是提示這個(gè)問 題;但phpMyAdmin在提示這個(gè)問題的時(shí)候,右下角有一行英文提示,大致意思是說,解決這個(gè)問題,可以參考phpMyAdmin文檔;直接點(diǎn)擊這個(gè) 鏈接,phpMyAdmin自動(dòng)查找到了以下說明:
[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)入了。
版本高點(diǎn)的phpMyAdmin則可以正確顯示最大限制,一般就是顯示post_max_size的值。
總結(jié)
以上是生活随笔為你收集整理的修改mysql导入sql大小限制_修改phpMyAdmin导入SQL文件的大小限制的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle和MySQL的日期函数_my
- 下一篇: mysql seconds_behind