# Install Appvance IQ Database Schema

1. Open **MySQLWorkbench**
2. If warning appears, click **OK**  
    ![](https://docs.appvance.net/Content/Resources/Images/Installation/MacOS14.png)
3. Select **Apple Menu** and click **System Preferences**
4. Click **Privacy &amp; Security**
5. Click the **General** tab and select **Open Anyway**, and then **Open**  
    ![](https://docs.appvance.net/Content/Resources/Images/Installation/MacOS15.png)  
      
      
      
    ![](https://docs.appvance.net/Content/Resources/Images/Installation/MacOS16.png)
6. If version compatibility issues occur, please try alternate download from [https://downloads.mysql.com/archives/workbench/](https://downloads.mysql.com/archives/workbench/)
7. When MySQL Workbench appears, assuming a database connection does not already exist, click **MySQL Connections +** (add) button  
    ![](https://docs.appvance.net/Content/Resources/Images/Installation/MacOS17.png)
8. Enter a name for the connection in the **Connection Name** box  
    Enter the **hostname**, **port** and credentials (if needed) and click **OK**  
    ![](https://docs.appvance.net/Content/Resources/Images/Installation/MacOS18.png)
9. Follow any prompts for updating the password
10. Click the newly created connection, for example AIQ as illustrated below  
    ![](https://docs.appvance.net/Content/Resources/Images/Installation/MacOS19.png)
11. Select **File** and click **Open SQL Query Script...**
12. Browse to &lt;AIQ&gt;\\**TestNode\\webapps\\AppvanceServer\\WEB-INF\\classes\\database**
13. Select **MySQLInitial.sql** and click **Open**
14. Select **Query** and click **Execute (All or Selection)**
15. Select **File** and click **Open SQL Script...**
16. From the same location, select **MySQLAppvance.sql** and click **Open**
17. Select **Query** and click **Execute (All or Selection)**

#### Troubleshooting

`<span class="editor-theme-code">Error Code: 1419. You do not have the SUPER privilege and binary logging is enabled</span>`

If you get the above error while running the `<span class="editor-theme-code">MySQLAppvance.sql</span>` script on AWS RDS, make sure that the RDS parameter group has the value `<span class="editor-theme-code">1 (ON)</span>` for the `<span class="editor-theme-code">log_bin_trust_function_creators</span>` parameter. The RDS database MUST be rebooted for parameter changes to take effect.

Next step: [Update MySQL Max Packet and Case Settings](https://docs.appvance.net/Content/AIQ/AIQ_Install/MacOSX/Install_Mac_UpdateMySQL.htm)

---

Last updated: September 18, 2024

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>