# Database is 0KB

**URL:** <https://community.kinsta.com/t/database-is-0kb/3914>\
**Category:** Bug Reports\
**Created:** [August 30, 2024, 10:31pm UTC](https://community.kinsta.com/t/database-is-0kb/3914 "2024-08-30T22:31:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlo\_Santos](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/carlo_santos/32/3858_2.png) [@Carlo\_Santos](https://community.kinsta.com/u/Carlo_Santos)\
**Post date:** [August 30, 2024, 10:31pm UTC](https://community.kinsta.com/t/database-is-0kb/3914/1 "2024-08-30T22:31:07Z")

</div>

**Q: Date/Time this occurred (Provide your time zone also)**  
\*\*A: 6:21AM GMT+8

**Q: DevKinsta Version**  
\*\*A: 2.13.4

**Q: OS Version**  
\*\*A: Windows 11

**Q: Docker Desktop Version**  
\*\*A: 4.29.0

**Q: Were any error codes or messages observed? If so, what were they?**  
**A:**

**Q: Detailed Description of the Problem**  
\*\*A: I’m new to DevKinsta, and I’ve faced one problem after another, this happened to me upon Site Import,

[Imported from Live - launched local site only shows the site URL repeated many times in HTML body - DevKinsta / Application Support - Kinsta Community](https://community.kinsta.com/t/imported-from-live-launched-local-site-only-shows-the-site-url-repeated-many-times-in-html-body/3356/8)

And I’ve solved this by changing the wp-config.php, and running **wp search-replace [remote-domain.com](http://remote-domain.com) my-local-site.local**

Now a new problem arises, I can access now the site’s local environment, but I’ve noticed the Database size is 0KB, for some reason, the site is working, the database is there, but it’s 0KB, is this a visual bug? Because I’m hesitant to push the changes.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/9/95beb4b58d8e1c23acaf5dd2fdf388c30add7957.png)

---

<div class="post-metadata">

**Author:** ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)\
**Post date:** [September 1, 2024, 8:16am UTC](https://community.kinsta.com/t/database-is-0kb/3914/2 "2024-09-01T08:16:15Z")

</div>

Hi @Carlo_Santos Welcome to the Community!

I’m sorry to hear that you’re experiencing issues. Thank you for sharing the screenshot; it’s very helpful. The database size should accurately reflect the actual size. I ran some tests on my end, including importing a site from Live, and the database size displayed correctly.

Could you please try restarting Docker and DevKinsta to see if it refreshes and displays the correct size? If the issue is purely visual and the local site is functioning correctly with the database intact, it may be safe to proceed with pushing the changes. However, I’m not entirely certain, so we should definitely test this further to be sure.

We’ll need to investigate this issue more thoroughly and conduct additional tests. We will let you know how it goes.

---

<div class="post-metadata">

**Author:** ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)\
**Post date:** [September 2, 2024, 3:35am UTC](https://community.kinsta.com/t/database-is-0kb/3914/5 "2024-09-02T03:35:56Z")

</div>

@Carlo_Santos

You can configure DevKinsta’s settings to quit the app when it is closed. Then, close and reopen the app.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/2/26b2f8ec401aa848aee50e20f8fbb78abd28413c.png)

Fully closing the app and re-opening should trigger the update db size action again to hopefully correct its value in the Devkinsta UI.

Example entry in the main.log file:  
`[2024-09-02 03:29:16.607] [info] [getDbSize] update new-loca-site site's db size`

---

<div class="post-metadata">

**Author:** ![Carlo\_Santos](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/carlo_santos/32/3858_2.png) [@Carlo\_Santos](https://community.kinsta.com/u/Carlo_Santos)\
**Post date:** [September 2, 2024, 2:22pm UTC](https://community.kinsta.com/t/database-is-0kb/3914/6 "2024-09-02T14:22:29Z")

</div>

I think I’ve found the culprit and the solution, so I forgot to mention that the “search & replace” function is also not working, as well as the wp-config, so I noticed that when I pushed to staging, db\_name, db\_user, db\_host, db\_password has been added to wp-config on staging, but I already had this configured on wp-config-db.

I tried deleting wp-config-db, and modified the added the correct db credentials on the wp-config.php, then everything worked. The search and replace and database file size on DevKinsta updated.

So I guess DevKinsta doesn’t read wp-config-db for the database info & creds, only when it’s in wp-config.php…

This is the preconfigured wp-config-db, which I removed.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0706394b30d13d5c46b059e71642144aca1071df.png)

This is the new db credentials I put in wp-config  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/a/a5ad84f0011d656ac30409a761a962d8eaf4ae35.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)\
**Post date:** [September 5, 2024, 2:22am UTC](https://community.kinsta.com/t/database-is-0kb/3914/7 "2024-09-05T02:22:47Z")

</div>

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