# (ERROR) Importing Missing SQL Database Via Adminer

**URL:** <https://community.localwp.com/t/error-importing-missing-sql-database-via-adminer/26649>\
**Category:** Support\
**Created:** [July 20, 2021, 1:28am UTC](https://community.localwp.com/t/error-importing-missing-sql-database-via-adminer/26649 "2021-07-20T01:28:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin15](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kevin15](https://community.localwp.com/u/kevin15)\
**Post date:** [July 20, 2021, 1:28am UTC](https://community.localwp.com/t/error-importing-missing-sql-database-via-adminer/26649/1 "2021-07-20T01:28:55Z")

</div>

Hi,

I’ve tried 2 different ways to import our website in Local WP. In both cases, most of our database was missing. When I checked the “local” or “mysql” tables in Adminer, I can only see about 1/3 of our actual database. Some direction on how to recover my database would be greatly appreciated!

**First**  
I used WP-Engine with our credentials to “Pull to Local”.

 ![m2c-wp-local](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/1/180e98ca186a8c8bbdb60208fd7987ea4df25258.png)

This error then appeared

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/2/2f50c234d32a49d29fea8b5319df68363fa982ed.png)

**Second**  
Having the issue above, I tried importing our website another way, by uploading a zip file in the _File \> Import Site_ method.

**Then**  
As an attempt to recover the database, I deleted the “local” table in Adminer, then tried to import the local.sql file as a compressed zip file. I get the following error:

 ![image (1)](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/6fb595718cd7be66ce1d9bbe2982b3760ad80d8a.png)

I then tried to follow the [suggested solution by Clay here for the error shown above](https://localwp.com/community/t/adminer-running-out-of-memory-upon-sql-import-fatal-error-allowed-memory-size-of-268435456-bytes-exhausted-tried-to-allocate-174873888-bytes-in-etc-scripts-local-adminer-php-on-line-92/2099).

Here are the commands I ran:

 ![sql-root](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/410ac7d5aec003b6046fc3972711fbd4927bcbb1.png)  
 ![wp-import](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/8/8a9e2fa2e4ac33c929c39e57ced1a791f88ab3b2.png)

#### Notes

- It’s possible to open our website in the browser, but most of the data is missing.
- I was able to create a new, plain WordPress website in Local and open it in the browser.
- Using Local 6.0.0 + 5444
- Linux Debian 5.8.0-59-generic / Ubuntu 20.04.2 LTS

[local-lightning.log](https://community.localwp.com/uploads/short-url/offR7Up4Y7WgtWO6FaU485juqeQ.log) (498.4 KB) [local-lightning.log|attachment]

Any help would be very appreciated as I’ve already spent a few days trying to troubleshoot this issue! TIA.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [October 18, 2021, 1:28am UTC](https://community.localwp.com/t/error-importing-missing-sql-database-via-adminer/26649/2 "2021-10-18T01:28:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
