数据库
首页 > 数据库> > MySQL之登陆密码加密认证脚本

MySQL之登陆密码加密认证脚本

作者:互联网

一、登陆密码加密认证脚本应用场景
日常操作,经常明文指定了MySQL密码来登录MySQL服务,在登录成功之后就会抛出下面的警告:
[root@git-server ~]# mysql -uroot -p'wujianwei'

Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 510
Server version: 5.6.36-log Source distribution
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> 

标签:加密,help,mysql,登陆密码,affiliates,MySQL,Oracle,Type
来源: https://blog.51cto.com/hsuing/2367401