我在Ubuntu 16.04上的MariaDB上有一个root用户.
默认情况下,root用户由unix_socket身份验证插件进行身份验证.
我可以通过设置将身份验证方法切换为密码方法
update mysql.user set plugin='' where user='root';
Run Code Online (Sandbox Code Playgroud)
这很好用.但......
是否有可能通过unix_socket(root shell)或密码(当它由localhost:3306连接时)验证root用户?