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

右大祝福 4年前 访问:1436 评论:0 关注:0

解决办法

编辑/etc/profile配置文件

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

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

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

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

评论

还没有人评论 ~