MySQL5.7.27报错“[Warning] Using a password on the command line interface can be insecure.”在命令行使用密码不安全警告

解决办法

编辑/etc/profile配置文件

[root@localhost local]# vi /etc/profile 在最后面添加如下内容,保存并退出

export MYSQL_PWD=数据库密码 使配置生效

[root@localhost local]# source /etc/profile

多数据库连接情况下不适用

登录后可以关注

评论 (0)

还没有评论,来抢沙发吧~