# How to change the Database info

**URL:** https://forum.mautic.org/t/how-to-change-the-database-info/1727
**Category:** Product Support
**Created:** [April 7, 2015, 5:25am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727 "2015-04-07T05:25:20Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![mohitgarg](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mohitgarg](https://forum.mautic.org/u/mohitgarg)
#### Post date: [April 7, 2015, 5:25am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/1 "2015-04-07T05:25:20Z")

</div>

Hi,  
  
  
  
I want to change my existing Mautic Database info.  
  
  
  
Can you please send me the file path. where i can change it.  
  
  
  
thanks

---

<div class="post-metadata">

### Author: ![mohitgarg](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mohitgarg](https://forum.mautic.org/u/mohitgarg)
#### Post date: [April 7, 2015, 5:25am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/2 "2015-04-07T05:25:20Z")

</div>

Hi,

I want to change my existing Mautic Database info.

Can you please send me the file path. where i can change it.

thanks

---

<div class="post-metadata">

### Author: ![mohitgarg](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mohitgarg](https://forum.mautic.org/u/mohitgarg)
#### Post date: [April 7, 2015, 5:29am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/3 "2015-04-07T05:29:10Z")

</div>

I founded the file.

thanks

---

<div class="post-metadata">

### Author: ![mohitgarg](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mohitgarg](https://forum.mautic.org/u/mohitgarg)
#### Post date: [April 7, 2015, 5:34am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/4 "2015-04-07T05:34:49Z")

</div>

i have done the database info in local.php file and still its showing the following error

Database connection error (code #1045)

Kindly please advise asap.

Thanks

---

<div class="post-metadata">

### Author: ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)
#### Post date: [April 7, 2015, 12:28pm UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/5 "2015-04-07T12:28:19Z")

</div>

Hi Mohitgarg

If you changed the config file you will definitely need to clear cache. you can do this by delete the app/cache directories. Assuming all your other database connection details are valid and the database is populated with all the necessary mautic tables, things should be up and running.

---

<div class="post-metadata">

### Author: ![mohitgarg](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mohitgarg](https://forum.mautic.org/u/mohitgarg)
#### Post date: [April 8, 2015, 6:05am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/6 "2015-04-08T06:05:18Z")

</div>

Thank you sir … its works now…

---

<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:32am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/7 "2015-11-19T09:32:47Z")

</div>

Can i ask how to clear the cache directories?

---

<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:11am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/8 "2015-11-20T11:11:13Z")

</div>

There is a command for it:

```auto
php app/console cache:clear
```

or delete the app/cache folder.

---

<div class="post-metadata">

### Author: ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)
#### Post date: [January 4, 2017, 5:42am UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/9 "2017-01-04T05:42:47Z")

</div>

@mohitgarg i have also same issue … i also deleted the cache folder but still i have issue . and i am unable to send a mail also

---

<div class="post-metadata">

### Author: ![viverderock](https://avatars.discourse-cdn.com/v4/letter/v/c6cbf5/32.png) [@viverderock](https://forum.mautic.org/u/viverderock)
#### Post date: [June 19, 2017, 4:31pm UTC](https://forum.mautic.org/t/how-to-change-the-database-info/1727/10 "2017-06-19T16:31:07Z")

</div>

I’m trying to find the file with the credentials, but can’t. Using 2.8.2. Anyone can tell the path on that version?

---

<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/how-to-change-the-database-info/1727/11 "2020-02-02T22:57:02Z")

</div>


