# Auth0 integration with MySql database - problems with user authentication

**URL:** <https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734>\
**Category:** Get Help\
**Tags:** mysql\
**Created:** [October 19, 2022, 4:49pm UTC](https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734 "2022-10-19T16:49:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeymike](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mikeymike/32/33331_2.png) [@mikeymike](https://community.auth0.com/u/mikeymike)\
**Post date:** [October 19, 2022, 4:49pm UTC](https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734/1 "2022-10-19T16:49:25Z")

</div>

Hi.

I’m trying to integrate Auth0 with onprem MySQL database - when trying to test the login script under Database Connections \> MySql \> Custom Database \> Database Action Scripts \> Login \> Save And Try I get the following messages:  
“Access denied for user ‘root’@‘[peu-a-ec1-0.outbound.auth0user.net](http://peu-a-ec1-0.outbound.auth0user.net)’ (using password: YES)”  
and  
“Client does not support authentication protocol requested by server; consider upgrading MySQL client”  
I am using MySql version 8 on the server.  
I found information that this is due to a different authentication protocol.  
I tried using both the mysql2 library and changing the authentication method on the server with the command:  
alter user ‘root’@‘localhost’ identified with mysql\_native\_password by ‘password’  
nothing has changed unfortunately.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2022, 10:38pm UTC](https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734/3 "2022-10-27T22:38:54Z")

</div>

Hi @mikeymike,

Welcome to the Auth0 Community!

Did you `flush privileges;` after completing that command as instructed in this SO post:

> <https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server>

---

<div class="post-metadata">

**Author:** ![mikeymike](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mikeymike/32/33331_2.png) [@mikeymike](https://community.auth0.com/u/mikeymike)\
**Post date:** [October 28, 2022, 6:08am UTC](https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734/4 "2022-10-28T06:08:10Z")

</div>

Hi,

I tried it, it doesn’t help. As you can see in the screenshot the root user is using standard authorization  
 ![auth04](https://global.discourse-cdn.com/auth0/original/3X/7/a/7aa00b3028fc8f9626d023c870a78720cfcb3bea.jpeg)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 28, 2022, 4:33pm UTC](https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734/5 "2022-10-28T16:33:07Z")

</div>

Have you tried creating a new user in your MySQL server?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 28, 2022, 8:54pm UTC](https://community.auth0.com/t/auth0-integration-with-mysql-database-problems-with-user-authentication/92734/6 "2022-11-28T20:54:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
