How create user with authentication plugin 'mysql_native_password' MariaDB server v10.3

Sniazhkou, Anton 20 Reputation points
2025-06-26T18:31:41.2966667+00:00

I want to create a new user in Azure MariaDB Server version 10.3 using the mysql_native_password authentication plugin, following the commands from the documentation:

CREATE USER 'test'@'%' IDENTIFIED WITH mysql_native_password USING 'test_password';

or

CREATE USER 'test'@'%' IDENTIFIED VIA mysql_native_password AS 'test_password';

However, the mysql_native_password plugin is not being applied. Is there a way to create a user with the mysql_native_password authentication plugin in Azure MariaDB Server?

Azure Database for MariaDB
Azure Database for MariaDB
An Azure managed MariaDB database service for app development and deployment.
64 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sai Raghunadh M 4,635 Reputation points Microsoft External Staff Moderator
    2025-06-26T20:01:52.7733333+00:00

    HI @ Sniazhkou, Anton

    Azure Database for MariaDB does not support configuring or changing the authentication plugin, such as mysql_native_password. This is by design in the managed Azure service to ensure security and compatibility. Even though the CREATE USER syntax with IDENTIFIED WITH/VIA may be valid in standard MariaDB, it is not supported on Azure’s platform. Instead, users should be created using the default method:

    CREATE USER 'username'@'%' IDENTIFIED BY 'YourStrongPassword';
    

    This automatically uses Azure’s secure built-in authentication method. There is no need to manually specify a plugin, and doing so will have no effect. If your application requires support for specific authentication plugins, you may consider using Azure Database for MySQL, which supports more flexible authentication configurations.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.