我只想使用unix_socket作为唯一的身份验证方法。默认情况下,mysql_native_password和mysql_old_password都已安装并启用,但我希望禁用它们。
我无法卸载它们:
MariaDB [(none)]> uninstall plugin mysql_native_password;
ERROR 1619 (HY000): Built-in plugins cannot be deleted 我遵循了这里的说明:https://mariadb.com/kb/en/mysql_插件/
我在/etc/mysql中创建了包含以下内容的D6:
disabled_plugins
mysql_old_password然后:
MariaDB [(none)]> mysql_plugin disabled_plugins DISABLE;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysql_plugin disabled_plugins DISABLE' at line 1这是在WSL1和10.3.27-MariaDB-0+deb10u1-log Debian 10上进行的。
有人能帮忙吗?
谢谢
发布于 2021-03-08 11:46:45
您应该从服务器命令行运行此命令,而不是从MariaDB控制台运行。
mysql_plugin disabled_plugins DISABLE
然后登录到MariaDB &请检查:
SELECT * FROM mysql.plugin;
https://dba.stackexchange.com/questions/286428
复制相似问题