# Database connection either MySQL or MSSQLEXPRESS

**URL:** <https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789>\
**Category:** Ignition\
**Created:** [November 5, 2021, 6:31pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789 "2021-11-05T18:31:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![heberalanis1](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@heberalanis1](https://forum.inductiveautomation.com/u/heberalanis1)\
**Post date:** [November 5, 2021, 6:31pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/1 "2021-11-05T18:31:24Z")

</div>

I do have installed the ignition app in my computer but using an external hard drive, also I do have the MySQL community (the latest version) amd MSSQLExpress but those in the host drive C:, for some reason I cannot create the connection using either Database Application, the message from ignition if I want to use the MySQL is this:

The MySQL driver is missing required files. Please see [this help page](https://links.inductiveautomation.com/81-docs-jdbc) for information about how to install the necessary driver files for your database. But I already have the MySQL installed.

for the other hand if I want to create a connection to the Microsoft SQL Server, the system shows me a faulted connection, I already try looking into the manual and the only difference is that I have installed the Ignition 8.1 in my external HD.

Do anybody can help me?

Regards  
Heber Alanis  
281-917-3685

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [November 5, 2021, 6:58pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/2 "2021-11-05T18:58:55Z")

</div>

> [@heberalanis1](#):
>
> [this help page](https://links.inductiveautomation.com/81-docs-jdbc)

This should get your MySQL connected, note that your connection string is going to need to be changed, but its covered in the documentation.  
Also make sure you set the database name correctly, i believe the default is "test"

For MSSQL express that should be straight forward, no need to update the driver, but you need to make sure the correct services are enabled. If i remember SQL Server Browser is disabled by default and i think you need to enable it.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 5, 2021, 7:13pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/3 "2021-11-05T19:13:37Z")

</div>

Also make sure it’s the standard express version and not the LocalDB version. LocalDB doesn’t allow for TCP/IP connections.

---

<div class="post-metadata">

**Author:** ![heberalanis1](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@heberalanis1](https://forum.inductiveautomation.com/u/heberalanis1)\
**Post date:** [November 5, 2021, 7:59pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/4 "2021-11-05T19:59:14Z")

</div>

That it doesn’t really matter if the system said, that there is not a driver configure for MySQL

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [November 5, 2021, 8:12pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/5 "2021-11-05T20:12:40Z")

</div>

I don’t follow, you are using MySql, is this not the driver you need:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/4/74973fb64b6f6393da5aef8b73e88bb26d74935a.png)

One of my servers is connected to MySql, and these are the instructions i had to follow to do it.

---

<div class="post-metadata">

**Author:** ![heberalanis1](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@heberalanis1](https://forum.inductiveautomation.com/u/heberalanis1)\
**Post date:** [November 5, 2021, 8:38pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/6 "2021-11-05T20:38:28Z")

</div>

Woow how fast Ignition become another Rockwell, Good Job

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 5, 2021, 9:26pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/7 "2021-11-05T21:26:41Z")

</div>

So far, you have not stated:

- The specific version of Ignition (e.g. 8.1.x). Sometimes, that does make a difference.
- The version of MySQL
- The version of SQL Server Express
- Anything representing what you have tried.
- Entries from the log showing the error. Or a screenshot to illustrate. A picture is worth many words.

please remember, this is not an official support channel. Most of us are users who volunteer our time to help others out.

That said, I assume that this the is specific error you see?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2ceba41c01d48cef9b103d493828c11eecb54a9c.png)  
If so, you will need to install the [JDBC driver files](https://dev.mysql.com/downloads/connector/j/) to match your version of MySQL. This is what provides the connection to the DB from a Java application, such as Ignition.

The same would be true for SQL Server (You did verify it was Standard, and not LocalDB, right?)

So, how about we hit these issues up one at a time, thus being more productive…

Which db should we connect to first?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 5, 2021, 10:07pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/8 "2021-11-05T22:07:17Z")

</div>

The only other thing I’ll add is that we don’t bundle the MySQL or Oracle JDBC drivers because we _can’t_, due to their licensing terms. The MariaDB driver is generally compatible with MySQL and the best alternative we’re able to directly include in the software.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [November 5, 2021, 11:07pm UTC](https://forum.inductiveautomation.com/t/database-connection-either-mysql-or-mssqlexpress/52789/9 "2021-11-05T23:07:19Z")

</div>

> [@heberalanis1](#):
>
> Woow how fast Ignition become another Rockwell, Good Job

Rockwell would charge you to ask a question like this, so it's a poor comparison. Love or hate Ignition, you having issues using 3rd party stuff is quite simply your issue. It's not hard to setup MySQL or MSSQL. If you really want help, I recommend trying a different method instead of blasting Ignition.
