用phpMyAdmin導入mysql數據庫時,個人10M的數據庫不能導入,提示mysql數據庫最大隻能導入2M。php
phpMyAdmin數據庫導入出錯:mysql
You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.sql
能夠修改導入數據庫文件最大限制嗎?數據庫
到網上搜索了一下前人的解決辦法,大多數都說修改php.ini中的upload_max_filesize,但修改了這個之後,仍是提示這個問 題;但phpMyAdmin在提示這個問題的時候,右下角有一行英文提示,大體意思是說,解決這個問題,能夠參考phpMyAdmin文檔;直接點擊這個 連接,phpMyAdmin自動查找到了如下說明:ide
[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.postThe 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.this
以上文件大體說明的意思就是說,遇到導入過大文件時,首先檢查php.ini 配置文件中的如下三個地方,upload_max_filesize, memory_limit 和post_max_size,而且推薦修改的值要稍大於導入的巨大sql數據庫文件;依照這個提示,我修改了以上三個在php.ini中的值之後,重啓 了php環境,再次導入時,雖然phpMyAdmin仍是顯示導入最大限制:20,480 KB,但巨大的80M數據庫文件已經被成功的導入了。.net
版本高點的phpMyAdmin則能夠正確顯示最大限制,通常就是顯示post_max_size的值。three