0

I'm trying to set the default authentication method to unix_socket.

Following the instructions here: https://lindevs.com/change-default-authentication-plugin-in-mysql/

I added to my.cnf :

[mysqld] 
default_authentication_plugin=unix_socket

And restarted: sudo service mysql restart

Unfortunately, I don't see any change:

MariaDB [(none)]> SHOW VARIABLES LIKE 'default_authentication_plugin';
Empty set (0.001 sec)

This is on WSL1 and 10.3.27-MariaDB-0+deb10u1-log Debian 10.

Thanks

asked Mar 7, 2021 at 22:37

1 Answer 1

1

default_authentication_plugin is a MySQL system server variable and not in MariaDB.

For the moment you'll need to specify the plugin explicitly when creating users.

There's no feature requests to add this functionality yet.

answered Mar 7, 2021 at 23:20
1

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.