合肥市高新區(qū)長江西路與科學(xué)大道交口5F創(chuàng)業(yè)園A座309
136 5560 1775

關(guān)于修改Mysql數(shù)據(jù)庫文件大小限制解答

發(fā)表日期:2012-03-27 瀏覽次數(shù):2552次

關(guān)于修改mysql數(shù)據(jù)庫文件大小限制解答,啟邁合肥網(wǎng)絡(luò)公司在用phpmyadmin導(dǎo)入mysql數(shù)據(jù)庫時(shí),遇到10M的數(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ù)庫文件最大限制嗎?可以!

解決這個(gè)問題,可以參考phpmyadmin文檔;直接點(diǎn)擊這個(gè)鏈接,phpmyadmin自動(dòng)查找到了以下說明:

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í),數(shù)據(jù)庫文件已經(jīng)被成功的導(dǎo)入了。


將文章分享到:

版權(quán)所有:啟邁科技-合肥網(wǎng)站建設(shè) 皖I(lǐng)CP備19009304號(hào)-1 皖公網(wǎng)安備 34010402702162號(hào)

網(wǎng)站建設(shè),網(wǎng)站設(shè)計(jì)公司啟邁科技,為眾多企業(yè)提供網(wǎng)站建設(shè),網(wǎng)站制作,響應(yīng)式網(wǎng)站設(shè)計(jì),手機(jī)網(wǎng)站建設(shè),微網(wǎng)站,模板建站,企業(yè)郵箱等一站式互聯(lián)網(wǎng)解決方案和建站服務(wù)10年。