如何使用navicat登陸mysql

docker exec -it mysql /bin/bash

 

#cd /usr/bin

 

#mysql -u root -p

 use mysql
從數據庫的user表中查詢 mysql 用戶原來使用的身份驗證插件

select user,host,plugin,authentication_string from user;

alter user 'root'@'%' identified with mysql_native_password by '123456';

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章