# Database Connection Errors When Deploying from Local DevKinsta

**URL:** https://community.kinsta.com/t/database-connection-errors-when-deploying-from-local-devkinsta/4733
**Category:** Bug Reports
**Created:** [January 21, 2025, 9:03am UTC](https://community.kinsta.com/t/database-connection-errors-when-deploying-from-local-devkinsta/4733 "2025-01-21T09:03:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Brettgray](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@Brettgray](https://community.kinsta.com/u/Brettgray)
#### Post date: [January 21, 2025, 9:03am UTC](https://community.kinsta.com/t/database-connection-errors-when-deploying-from-local-devkinsta/4733/1 "2025-01-21T09:03:58Z")

</div>

Hi

I’m getting a ‘Database Connection Error’ when I try to deploy my local WordPress site (from DevKinsta) to Kinsta’s hosting environment. I’ve tried checking the wp-config.php settings, but it doesn’t seem to fix the problem. Anyone encountered this issue before? How did you solve it?

Thanks!

---

<div class="post-metadata">

### Author: ![JovanaDjordjevic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jovanadjordjevic/32/3854_2.png) [@JovanaDjordjevic](https://community.kinsta.com/u/JovanaDjordjevic)
#### Post date: [January 21, 2025, 9:09am UTC](https://community.kinsta.com/t/database-connection-errors-when-deploying-from-local-devkinsta/4733/2 "2025-01-21T09:09:35Z")

</div>

Hello, Brettgray! 👋 Thanks for reaching out.  
I hope you are doing well! This is Jovana from the Kinsta Team. 😊

Can you please provide us with the details from the main.log file or with the actual file, so we can investigate further?  
You can check how to view it [here](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes/#viewing-the-application-log-file).

Please let me know if you need anything else.

Best regards,  
Jovana
