# Using Mysql as Keycloak schema and SQL Server as Storage Provider Interface

**URL:** <https://forum.keycloak.org/t/using-mysql-as-keycloak-schema-and-sql-server-as-storage-provider-interface/6762>\
**Category:** Extending the server\
**Tags:** user-federation\
**Created:** [January 12, 2021, 6:18pm UTC](https://forum.keycloak.org/t/using-mysql-as-keycloak-schema-and-sql-server-as-storage-provider-interface/6762 "2021-01-12T18:18:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![muralinit](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/muralinit/32/1998_2.png) [@muralinit](https://forum.keycloak.org/u/muralinit)\
**Post date:** [January 12, 2021, 6:18pm UTC](https://forum.keycloak.org/t/using-mysql-as-keycloak-schema-and-sql-server-as-storage-provider-interface/6762/1 "2021-01-12T18:18:50Z")

</div>

Hi Team,

It would be really helpful if anyone could help me on this. Struggling on this since last 3 days. But could not able find success.

In our product we want to use MySQL as Keycloak DB Schema and we need to provide user federation for one of our client. Their data is stored in SQL Server. So, I configured my standalone.xml to connect to both of the databases. But I am facing when querying for a user who is stored in SQLServer. Please find my standalone.xml file in the below given link. Please advice or point any guidance to achieve this.

```
[https://github.com/muralinit/keycloak-stanalone-configuration/blob/main/standalone.xml](https://standalone.xml)
```
