解决mysql不用密码也能登录的问题

  1. mysql
  2. use mysql;
  3. update mysql.user set plugin = 'mysql_native_password' where user = 'root' and host='localhost';
  4. FLUSH PRIVILEGES;
  5. quit;
posted @ 2022-06-22 22:48  热心邻居老王  阅读(170)  评论(0编辑  收藏  举报