安装完mysql,使用了各种方法设置root的密码,均不生效,后来网上看到
plugin字段值是auth_socket,将其改为mysql_native_password即可
mysql.user SET authentication_string=PASSWORD('1q!Qqqqq'), plugin='mysql_native_password' WHERE user='root';
安装完mysql,使用了各种方法设置root的密码,均不生效,后来网上看到
plugin字段值是auth_socket,将其改为mysql_native_password即可
mysql.user SET authentication_string=PASSWORD('1q!Qqqqq'), plugin='mysql_native_password' WHERE user='root';