mysql匯入資料庫檔案最大限制更改解決方案:You probably tried to upload too large file

來源:互聯網
上載者:User

最近一次在用phpmyadmin匯入mysql資料庫時,偶的15M的資料庫不能匯入,mysql資料庫最大隻能匯入2M..

phpmyadmin資料庫匯入出錯:
You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.

可以修改匯入資料庫檔案最大限制嗎?

到網上搜尋了一下前人的解決辦法,大多數都說修改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資料庫檔案;依照這個提示,我修改了以上三個在php.ini中的值以後,重啟 了php環境,再次匯入時,雖然phpmyadmin還是顯示匯入最大限制:20,480 KB,但巨大的80M資料庫檔案已經被成功的匯入了。
所用phpMyAdmin的版本為 2.8.1,環境:APMServ 5.1.2

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.