In case someone lands here after making the same mistake I did:
plugin="mysql_native_password"
temporarily. Performed my tasks.plugin="auth_socket"
which resulted in mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded"
mysql_safe
to bypass authentication in order to switch to the appropriate plugin plugin="unix_socket"
Hopefully this saves someone some time if they receive the original poster's error message, but the true cause was flubbing the plugin name, not actually lacking the existence of the "auth_socket" plugin itself, which according to the MariaDB documentation:
In MariaDB 10.4.3 and later, the unix_socket authentication plugin is installed by default, and it is used by the 'root'@'localhost' user account by default.