phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件怎么辦?

phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件的解決辦法:首先修改【php.ini】中的【upload_max_filesize】;然后修改相關(guān)的配置文件;接著讓修改的值要稍大于導(dǎo)入的sql數(shù)據(jù)庫文件;最后重啟php環(huán)境即可。

創(chuàng)新互聯(lián)專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都網(wǎng)站設(shè)計、網(wǎng)站制作、大荔網(wǎng)絡(luò)推廣、成都小程序開發(fā)、大荔網(wǎng)絡(luò)營銷、大荔企業(yè)策劃、大荔品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們大的嘉獎;創(chuàng)新互聯(lián)為所有大學(xué)生創(chuàng)業(yè)者提供大荔建站搭建服務(wù),24小時服務(wù)熱線:028-86922220,官方網(wǎng)址:muchs.cn

phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件的解決辦法:

大多數(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.

以上文件大致說明的意思就是說,遇到導(dǎo)入過大文件時,首先檢查php.ini 配置文件中的以下三個地方,upload_max_filesize,memory_limitpost_max_size,并且推薦修改的值要稍大于導(dǎo)入的巨大sql數(shù)據(jù)庫文件。

依照這個提示,我修改了以上三個在php.ini中的值以后,重啟 了php環(huán)境,再次導(dǎo)入時,雖然phpmyadmin還是顯示導(dǎo)入限制:20,480 KB,但巨大的80M數(shù)據(jù)庫文件已經(jīng)被成功的導(dǎo)入了。

所用phpMyAdmin的版本為 2.8.1,環(huán)境:APMServ 5.1.2

相關(guān)教程推薦:phpmyadmin

本文標(biāo)題:phpMyAdmin無法導(dǎo)入大的數(shù)據(jù)庫文件怎么辦?
文章路徑:http://muchs.cn/article36/chsppg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、外貿(mào)建站、微信公眾號網(wǎng)站維護、ChatGPT、網(wǎng)站導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司