# Update the DB name in DevKinsta, after updating it in wp-config?

**URL:** https://community.kinsta.com/t/update-the-db-name-in-devkinsta-after-updating-it-in-wp-config/934
**Category:** Application Support
**Created:** [August 18, 2021, 4:15pm UTC](https://community.kinsta.com/t/update-the-db-name-in-devkinsta-after-updating-it-in-wp-config/934 "2021-08-18T16:15:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![philippstracker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/philippstracker/32/638_2.png) [@philippstracker](https://community.kinsta.com/u/philippstracker)
#### Post date: [August 18, 2021, 4:15pm UTC](https://community.kinsta.com/t/update-the-db-name-in-devkinsta-after-updating-it-in-wp-config/934/1 "2021-08-18T16:15:44Z")

</div>

I’ve changed a local site to a different DB by (a) first renaming the DB in Adminer and then (b) updating wp-config.php of the relevant website. Then I’ve restarted DevKinsta, to propagate the change to relevant modules.

However, **DevKinsta does not fetch the DB name from wp-config** , but from some other source. It still displays the old/invalid DB name in the sites “Database” section. As a result, I get an error when I click on the “Manage Database” button.

Question: **How can I update the DB name in DevKinsta** to get the correct Adminer URL?

Here’s a sample screenshot - here I’ve simply changed the DB name to lowercase:

 ![rename-db-issues](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/18d3ff5cb555989b76eb7a2dafffd70a203d2038.jpeg)

---

<div class="post-metadata">

### Author: ![philippstracker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/philippstracker/32/638_2.png) [@philippstracker](https://community.kinsta.com/u/philippstracker)
#### Post date: [August 18, 2021, 6:59pm UTC](https://community.kinsta.com/t/update-the-db-name-in-devkinsta-after-updating-it-in-wp-config/934/2 "2021-08-18T18:59:20Z")

</div>

I’ve found a way to make those changes, by editing the internal config file `~/Library/Application Support/DevKinsta/config.json` 🙂

The DB Name of each site is at the location `root \ sites [index] \ database \ name`.

In this thread, I’ve added some more notes on editing the config file: [Sorting, Filtering, or Ordering Sites on DevKinsta - #5 by philippstracker](https://community.kinsta.com/t/sorting-filtering-or-ordering-sites-on-devkinsta/598/5)

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [August 18, 2021, 9:54pm UTC](https://community.kinsta.com/t/update-the-db-name-in-devkinsta-after-updating-it-in-wp-config/934/3 "2021-08-18T21:54:12Z")

</div>

Awesome searching! I’m glad that’s working for you. Let me know if you need anything else. 👍

---

<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: [August 21, 2021, 9:54pm UTC](https://community.kinsta.com/t/update-the-db-name-in-devkinsta-after-updating-it-in-wp-config/934/4 "2021-08-21T21:54:36Z")

</div>

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