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\>

相关推荐
ShoreKiten3 小时前
ctfshow-web177
sql·web
赵渝强老师3 小时前
【赵渝强老师】国产金仓数据库的表空间
数据库·postgresql
廋到被风吹走3 小时前
【数据库】【Oracle】PL/SQL 存储过程与函数
数据库·sql·oracle
amao99884 小时前
数据库原理与技术 - 3-3 3-4 SQL语言(二)数据操作语言
数据库·sql·oracle
AC赳赳老秦4 小时前
DeepSeek+Power BI:数据导入脚本生成与可视化图表优化技巧
数据库·mongodb·信息可视化·流程图·mapreduce·数据库架构·deepseek
小猿姐4 小时前
从 0 到 1 构建领先 DBaaS 平台:移动云架构师丁顺的 KubeBlocks 实践之路
云原生·kubernetes·dba
VX:Fegn08954 小时前
计算机毕业设计|基于springboot + vue图书管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
笑洋仟5 小时前
Linux StorCLI工具安装和使用
linux·数据库·redis
麦聪聊数据5 小时前
数据服务化(生产者篇):如何通过 QuickAPI 实现 SQL 逻辑的安全封装与发布?
数据库·sql·安全
amao99886 小时前
数据库原理与技术 - 3-5 SQL查询训练(习题)
数据库·sql