mysql: [Warning] Using a password on the command line interface can be insecure
解决方法:
登录重新配置的mysql 使用初始化秘密无法连接到mysql:
提示:Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
或者
Enter password:
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)
在输入指令:mysql -uroot -p***** 初始化配置mysql密码时提示上边错误
查看官网文献:
官网:https://dev.mysql.com/doc/refman/8.0/en/password-security-user.html
说明如下:
6.1.2.1 End-User Guidelines for Password Security
MySQL users should use the following guidelines to keep passwords secure.
When you run a client program to connect to the MySQL server

本文档详细介绍了如何解决在命令行中使用MySQL时出现的'Using a password on the command line interface can be insecure'警告,以及解决'Access denied for user’root’@‘localhost’'的错误。提供了包括停止MySQL服务、跳过授权表、设置新密码、重启服务在内的完整解决方案。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



