# Problem connecting to MariaDB

**URL:** <https://community.easymorph.com/t/problem-connecting-to-mariadb/4603>\
**Category:** Support\
**Created:** [June 30, 2023, 12:45pm UTC](https://community.easymorph.com/t/problem-connecting-to-mariadb/4603 "2023-06-30T12:45:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![User1](https://community.easymorph.com/letter_avatar_proxy/v4/letter/u/5daacb/32.png) [@User1](https://community.easymorph.com/u/User1)\
**Post date:** [June 30, 2023, 12:45pm UTC](https://community.easymorph.com/t/problem-connecting-to-mariadb/4603/1 "2023-06-30T12:45:37Z")

</div>

Hello Community,  
when connecting to a SQL MariaDB, I have a problem. After entering all parameters like User, Password, Server, Port and Database name, i click "Test". I get the message "Test connection succeeded.", but when i try to query from the database the following two error messages appear alternating:  
- Object cannot be cast from DBNull to other types  
- The given key was not present in the dictionary

Here is the Debug log:

 ![grafik](https://community.easymorph.com/uploads/default/original/2X/b/b003f6bb4696b649f24ff0e62a48dc506c869dbf.jpeg)

My current version of EasyMorph is 5.4.3.10. The version of the MariaDB is 10.

Can someone help me with this problem?

Kind regards

---

<div class="post-metadata">

**Author:** ![andrew.rybka](https://community.easymorph.com/user_avatar/community.easymorph.com/andrew.rybka/32/13_2.png) [@andrew.rybka](https://community.easymorph.com/u/andrew.rybka)\
**Post date:** [June 30, 2023, 5:21pm UTC](https://community.easymorph.com/t/problem-connecting-to-mariadb/4603/2 "2023-06-30T17:21:12Z")

</div>

Hello @User1,

It seems that MariaDB starting from version 10.10, is no longer compatible with MySQL Connector/NET, used internally by EasyMorph's native MySQL connector: [https://bugs.mysql.com/bug.php?id=109331](https://bugs.mysql.com/bug.php?id=109331)

We will discuss how to approach this. For now, the possible workaround is to use an ODBC connector and [MariaDB ODBC driver](https://mariadb.com/kb/en/mariadb-connector-odbc/).
