# Database connection error (code #1044)

**URL:** https://forum.mautic.org/t/database-connection-error-code-1044/2810
**Category:** Product Support
**Created:** [November 19, 2015, 9:40am UTC](https://forum.mautic.org/t/database-connection-error-code-1044/2810 "2015-11-19T09:40:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![angelosmith](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@angelosmith](https://forum.mautic.org/u/angelosmith)
#### Post date: [November 19, 2015, 9:40am UTC](https://forum.mautic.org/t/database-connection-error-code-1044/2810/1 "2015-11-19T09:40:22Z")

</div>

I have changed the database credentials in local.php. However it throws up “Database connection error (code #1044)”.  
  
On the other thread, it says to clear cache directories. How can i do this?

---

<div class="post-metadata">

### Author: ![angelosmith](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@angelosmith](https://forum.mautic.org/u/angelosmith)
#### Post date: [November 19, 2015, 9:40am UTC](https://forum.mautic.org/t/database-connection-error-code-1044/2810/2 "2015-11-19T09:40:22Z")

</div>

I have changed the database credentials in local.php. However it throws up “Database connection error (code #1044)”.  
On the other thread, it says to clear cache directories. How can i do this?

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [November 20, 2015, 11:12am UTC](https://forum.mautic.org/t/database-connection-error-code-1044/2810/3 "2015-11-20T11:12:14Z")

</div>

I answered your question in the other thread:  
[https://www.mautic.org/community/index.php/261-how-to-change-the-database-info](https://www.mautic.org/community/index.php/261-how-to-change-the-database-info)

---

<div class="post-metadata">

### Author: ![angelosmith](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@angelosmith](https://forum.mautic.org/u/angelosmith)
#### Post date: [November 22, 2015, 6:59am UTC](https://forum.mautic.org/t/database-connection-error-code-1044/2810/4 "2015-11-22T06:59:49Z")

</div>

That works, thank you.

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/database-connection-error-code-1044/2810/5 "2020-02-02T22:57:06Z")

</div>


