注意 修改错误会修改LINUX 内部配置文件 所以请要修改的内容注释后再进行修改 这样可以有效防止内部配置文件错误
打开linux的shell 输入 打开mysql配置文件
sudo vim /etc/f.d/mysqldf
在如下位置,加入 skip-grant-tables
打开linux shell 输入:mysql -umysql -p 你的mysql 密码
mysql -umysql -pmysql
使用mysql数据库
use maysql;
查看用户 和 plugin
select user,plugin from use;
修改root的plugi 在mysql的shell 输入
update user set authentication_string=password('你的密码'),plugin='mysql_natice_password' where user='root';
查看root用户的plugin是否修
select user,plugin from user;
8.退出mysql 在mysql的shell输入
Quit
9.给mysql配置加注释
select user,plugin from user;
10.重新连接
本文发布于:2024-02-02 19:21:34,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170687290745903.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |