# Database setup error

**URL:** https://forum.mautic.org/t/database-setup-error/8045
**Category:** Product Support
**Created:** [March 29, 2017, 6:18am UTC](https://forum.mautic.org/t/database-setup-error/8045 "2017-03-29T06:18:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![valuearb](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@valuearb](https://forum.mautic.org/u/valuearb)
#### Post date: [March 29, 2017, 6:18am UTC](https://forum.mautic.org/t/database-setup-error/8045/1 "2017-03-29T06:18:53Z")

</div>

Hi, I am a newbie and hoping someone can help me out-  
  
  
  
I get this error during step 1 of installation after entering in my database details from the PHPstack application on Cloudways-  
  
  
  
An error occurred while attempting to add default data: MysqlPlatform::getDropIndexSQL() expects $table parameter to be string or DoctrineDBALSchemaTable.  
  
  
  
Any ideas on how to fix this? Thanks

---

<div class="post-metadata">

### Author: ![valuearb](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@valuearb](https://forum.mautic.org/u/valuearb)
#### Post date: [March 29, 2017, 6:18am UTC](https://forum.mautic.org/t/database-setup-error/8045/2 "2017-03-29T06:18:53Z")

</div>

Hi, I am a newbie and hoping someone can help me out-

I get this error during step 1 of installation after entering in my database details from the PHPstack application on Cloudways-

An error occurred while attempting to add default data: MysqlPlatform::getDropIndexSQL() expects $table parameter to be string or DoctrineDBALSchemaTable.

Any ideas on how to fix this? Thanks

---

<div class="post-metadata">

### Author: ![valuearb](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@valuearb](https://forum.mautic.org/u/valuearb)
#### Post date: [March 29, 2017, 6:27am UTC](https://forum.mautic.org/t/database-setup-error/8045/3 "2017-03-29T06:27:01Z")

</div>

Hi guys, I searched the forum and I did this in the CLI-

Updates the database schema:  
php app/console doctrine:schema:update --force

After that, it lets me proceed to Step 3 of installation.

But I’m not really sure what this does. Can anyone explain to me what exactly this command did? Did it just update the columns and data types of the tables?

---

<div class="post-metadata">

### Author: ![thz](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@thz](https://forum.mautic.org/u/thz)
#### Post date: [April 3, 2017, 4:36pm UTC](https://forum.mautic.org/t/database-setup-error/8045/4 "2017-04-03T16:36:07Z")

</div>

Hi, I am a newbie too, and I got the same error.  
Does anyone know how to solve it?

@valuearb How to update the database schema?

---

<div class="post-metadata">

### Author: ![thz](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@thz](https://forum.mautic.org/u/thz)
#### Post date: [April 3, 2017, 7:19pm UTC](https://forum.mautic.org/t/database-setup-error/8045/5 "2017-04-03T19:19:00Z")

</div>

![](https://gallery.mailchimp.com/11dec8f37091d80febb76b502/images/2bbd2c76-9a70-4cac-b493-2483b5c77d8c.png)
