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

相关推荐
什么都不会的Tristan3 小时前
Feed流(关注推送)
java·前端·数据库
wu_jing_sheng03 小时前
黑龙江省保险补贴Shapefile转换工具:GIS数据处理自动化实践
大数据·数据库·人工智能
GrowingYi4 小时前
分布式数据库事务实现
数据库·分布式·database
托尼吴4 小时前
milvus 向量数据库学习笔记-基础认识
数据库·学习·milvus
徐同保4 小时前
使用n8n中的HTTP Request节点清空pinecones向量数据库
数据库·网络协议·http
小北方城市网4 小时前
第 9 课:Python 全栈项目性能优化实战|从「能用」到「好用」(企业级优化方案|零基础落地)
开发语言·数据库·人工智能·python·性能优化·数据库架构
ChineHe4 小时前
Redis入门篇001_Redis简介与特性
数据库·redis·缓存
仓颉也为难4 小时前
全表扫和索引在哪种场景哪个效率高、基线分水岭在哪
数据库
Anthony_2314 小时前
MySql常用SQL命令
服务器·数据库·sql·mysql·http·oracle·udp
一直在追4 小时前
大数据转型的“降维打击”:当分布式架构遇上向量数据库 (Milvus & ES 实战)
大数据·数据库