Import database even if it exceeds the limit size

放肆的年华 提交于 2019-12-03 23:23:13

问题


I've noticed that MySQL accepts only 2,048kb size of database but mine is 3.45mb. Does anyone know how to import the database? I'm only using phpmyadmin.


回答1:


Use command line interface to do the import . I don't think there is such small limit for database size in MySQL . From MySQL documentation SIZE LIMITS

The limit may be if you are using phpmyadmin which may limit file upload size according to settings specified in php.ini file

Syntax

   $ mysql -u {DB-USER-NAME} -p {DB-NAME} < {db.file.sql}

If you want do import using phpmyadmin change settings in php.ini file

post_max_size = 10M 
upload_max_filesize = 10M 



回答2:


Here are simple steps:

  1. Open .sql file
  2. Select All (ctrl + A)
  3. Copy All
  4. Goto PhpMyAdmin
  5. Select DATABASE
  6. Open SQL tab and PASTE

Now wait for sometime.....



来源:https://stackoverflow.com/questions/16381298/import-database-even-if-it-exceeds-the-limit-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!