mysql8.0 保护登录信息

root@student \~\]# mysql_config_editor --help mysql_config_editor Ver 8.0.13 for linux-glibc2.12 on x86_64 (MySQL Community Server - GPL) Copyright (c) 2012, 2018, 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. MySQL Configuration Utility. Usage: mysql_config_editor \[program options\] \[command \[command options\]

-#, --debug[=#] This is a non-debug version. Catch this and exit.

-?, --help Display this help and exit.

-v, --verbose Write more information.

-V, --version Output version information and exit.

Variables (--variable-name=value)

and boolean options {FALSE|TRUE} Value (after reading options)


verbose FALSE

Where command can be any one of the following :

set [command options] Sets user name/password/host name/socket/port

for a given login path (section).

remove [command options] Remove a login path from the login file.

print [command options] Print all the options for a specified

login path.

reset [command options] Deletes the contents of the login file.

help Display this usage/help information.

root@student \~\]# mysql_config_editor set --login_path=client --user=root --password --host=localhost --port=3306 Enter password: 会在当前用户HOME文件夹下创建 一个隐藏二进制文件 \[root@student \~\]# ls -al .mylogin.cnf -rw------- 1 root root 156 Oct 12 21:37 .mylogin.cnf \[root@student \~\]# \[root@student \~\]# mysql Welcome to the MySQL monitor. Commands end with ; or \\g. Your MySQL connection id is 18 Server version: 8.0.13 MySQL Community Server - GPL Copyright (c) 2000, 2018, 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\>

相关推荐
小疯仔10 分钟前
navicat导出数据库的表结构
数据库
TOSUN同星11 分钟前
干货分享 | TSMaster DBC编辑器操作指南:功能详解+实战示例
数据库·oracle·编辑器·汽车·软件工程
蓝天420211 分钟前
ORACLE 日常查询
oracle
huihui4501 小时前
一天一道Sql题(day01)
数据库
~尼卡~1 小时前
软考(软件设计师)数据库原理:事务管理,备份恢复,并发控制
数据库·软件设计师-软考
八九燕来1 小时前
Django双下划线查询
数据库·django·sqlite
眠りたいです2 小时前
Mysql常用内置函数,复合查询及内外连接
linux·数据库·c++·mysql
paopaokaka_luck2 小时前
智能推荐社交分享小程序(websocket即时通讯、协同过滤算法、时间衰减因子模型、热度得分算法)
数据库·vue.js·spring boot·后端·websocket·小程序
M1A13 小时前
Java 面试系列第一弹:基础问题大盘点
java·后端·mysql
He.ZaoCha3 小时前
函数-1-字符串函数
数据库·sql·mysql