Import of DB with PHPMyAdmin not working
See original GitHub issueIssue Description
I opened PHPMyAdmin on localhost:8092.
Opened a DB of an environment
Removed all tables.
Tried to import a DB and PHPMyAdmin gives me only this: Incorrect format parameter
I have tried multiple DB backups (sql files), and also compressed (zip files).
[update] It’s probably because of upload limits, so I’ve edited the php.ini file in /usr/local/php with this:
upload_max_filesize = 1000M
post_max_size = 1000M
I see these values in a phpinfo page I created, but PHPMyAdmin still uses 2M as max upload size.
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (1 by maintainers)
Top Results From Across the Web
Unable to import a database through phpMyAdmin
The import is trying to create the database, but you have already created it. In which case it should be dropping the database...
Read more >How to Import a MySQL Database using phpMyAdmin
Make sure to clear your browser cache and check the list of databases in the MySQL Databases list in cPanel. If the problem...
Read more >phpMyAdmin — How to import a database or table
Log into phpMyAdmin. · Select the destination database on the left pane. · Click on the Import tab in the top center pane....
Read more >How do I import a database to phpMyAdmin?
Step 1 - Open your database in phpMyAdmin · Step 2 - Click Databases in the top-menu · Step 3 - Click the...
Read more >How To Solve Error Importing Database Phpmyadmin Cpanel ...
In this tutorial, I will show you, how to solve error importing database phpmyadmin cpanel or localhost. After this tutorial you can learn, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
I solved import of DB error, by changing UPLOAD_LIMIT=1G at docker-compose.yml
myadmin: image: phpmyadmin/phpmyadmin container_name: phpmyadmin ports: - “8083:80” environment: - UPLOAD_LIMIT=1G - PMA_ARBITRARY=1 - PMA_HOST=${MYSQL_HOST} restart: always depends_on: - mysqldb
@mbootsman I looked into this a bit. wp-local-docker-v2 utilizes the phpmyadmin/phpmyadmin image. Turns out the latest image of phpmyadmin/phpmyadmin does NOT configure the max upload size in php at all where, at least some, previous images did.
Here is the new image
Here is the old image
For this an issue would need to be raised at https://github.com/phpmyadmin/docker/issues.
However, you have other options. wp-local-docker-v2 does expose mysql on port 3306 so you can use any database management app you might have on your system already. Simply connect to 127.0.0.1 port 3306 and log in as root/password. Your other option to import the database is to put the sql file into the doc root of your project (so wp-local-docker-sites//wordpress) and use
10updocker wp db import <filename>
. This will import the database using wp cli instead of other methods.Hope that helps