# DevKinsta - connect local instance to live database?

**URL:** https://community.kinsta.com/t/devkinsta-connect-local-instance-to-live-database/5096
**Category:** Questions
**Created:** [May 23, 2025, 1:34pm UTC](https://community.kinsta.com/t/devkinsta-connect-local-instance-to-live-database/5096 "2025-05-23T13:34:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jrgong/32/4750_2.png) [@jrgong](https://community.kinsta.com/u/jrgong)
#### Post date: [May 23, 2025, 1:34pm UTC](https://community.kinsta.com/t/devkinsta-connect-local-instance-to-live-database/5096/1 "2025-05-23T13:34:20Z")

</div>

Hey guys

is there any way to mirror my Kinsta live site locally but connect to the live database?

---

<div class="post-metadata">

### Author: ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)
#### Post date: [May 24, 2025, 1:49am UTC](https://community.kinsta.com/t/devkinsta-connect-local-instance-to-live-database/5096/2 "2025-05-24T01:49:34Z")

</div>

Hi @jrgong! Welcome to the Kinsta community! Thanks for reaching out!

There isn’t currently an official way with DevKinsta to pull a site and then connect back to the live database on Kinsta. However, something you could try would be to establish an external database connection from your computer to the live site. This would involve connecting using an SSH tunnel. Then, you could try updating the wp-config.php file and update the database connection information to use the SSH tunnel and external database connection.

This wouldn’t be an officially supported method of connecting to the database however, and performance would be suboptimal.

Below, you may find our help article that goes into details about how to setup an SSH tunnel and connect to a database remotely:

> **[Database Management - Database Access - Kinsta® Docs](https://kinsta.com/docs/wordpress-hosting/database-management/wordpress-database-access/)**
>
> Learn more about direct database access to your WordPress site and how to connect with tools like phpMyAdmin, HeidiSQL, Sequel Pro, and MySQL Workbench.

Please let us know if you have any further questions! We’re happy to help!

Best regards,
