docker之mysql安装问题client does not support authentication记录
2020-03-28 19:13
866 查看
Navicatl链接mysql 报错:1521 client does not support authentication
docker ps --命令查询出mysql的容器id
docker exec -it 容器id bash --命令进入容器命令行
mysql -u root -p --进入mysql命令行模式
select host,user,plugin,authentication_string from mysql.user; --查看用户信息
备注:host为 % 表示不限制ip localhost表示本机使用 plugin为秘密加密插件
ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘newpassword’; --使用mysql_native_password加密方式加密
flush privileges; --刷新生效
docker 运行mysql 命令:
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Mysql4安装Client does not support authentication protocol requested问题的解决
- 烦人的问题:Client does not support authentication protocol requested by server; consider upgrading MySQL client
- Mysql4安装Client does not support authentication protocol requested问题的解决
- mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
- mysql4.1以上版本连接时出现Client does not support authentication protocol #1251错误问题解决办法
- Mysql连接时出现Client does not support authentication protocol问题解决办法
- mysql4.1以上版本连接时出现Client does not support authentication protocol #1251错误问题解决办法
- mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
- mysql出现Client does not support authentication protocol问题的解决。
- Mysql4安装Client does not support authentication protocol requested问题的解决
- mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
- 新版Mysql密码算法不同导致“Client does not support authentication protocol requested by server”错误
- mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
- 解决Navicat for MySQL 连接 Mysql 8.0.17 出现1251- Client does not support authentication protocol 错误
- Client does not support authentication protocol requested by server; consider upgrading MySQL client
- mysql服务设置远程连接 解决1251 client does not support ..问题
- MYSQL(解决方法):Client does not support authentication
- 转 mysql服务设置远程连接 解决1251 client does not support ..问题
- navicat 连接 mysql 出现Client does not support authentication protocol requested by server解决方案
- navicat 连接 mysql 出现Client does not support authentication protocol requested by server解决方案