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:
- Open .sql file
- Select All (ctrl + A)
- Copy All
- Goto PhpMyAdmin
- Select DATABASE
- Open SQL tab and PASTE
Now wait for sometime.....