Allow Users to Raise the Memory Upload Limit for Adminer

Currently, the Memory Limit for Adminer is hard-coded at 256 MB which means if you’re importing a large database you might get an error like these:

A note that this is not related to the PHP Memory value set in php.ini which you can edit to a larger value. Steps for this are included at the bottom of our Troubleshooting Performance Issues help article here.

The workaround for the Adminer error is to manually import the database file as mentioned in our Manually Importing a Local Site guide. The steps would look like this:

  • Copy the correct SQL file to the site root (App>Public)

  • Within Local, click Open Site Shell

  • Import your Database with wp db import your-database-filename.sql

  • If that works, now Search and replace the domains. This might require more than one S/R, for example:

wp search-replace mysite.local
wp search-replace https://mysite.local http://mysite.local