MySQL Variables default_authentication_plugin 数据库 参数变量解释及正确配置使用
2023-06-13 09:11:25 时间
用途
default_authentication_plugin是MySQL的参数变量,用于指定MySQL的验证插件的类型。其可设置的参数有mysql_native_password、sha256_password、caching_sha2_password。
设置该变量的方式如下:
1、在MySQL中执行命令
SET GLOBAL default_authentication_plugin = 插件类型
2、修改MySQL配置文件my.cnf中[mysqld]节点下default-authentication-plugin参数值。
例如:default-authentication-plugin=caching_sha2_password
3、重启MySQL服务
官方英文解释 default_authentication_pluginsha256_password: Use SHA-256 passwords;
see Section 6.4.1.5, “SHA-256 Pluggable Authentication”.
If this variable has a value other than
mysql_native_password, clients older than
MySQL 5.5.7 cannot connect because, of the permitted default
authentication plugins, they understand only the
mysql_native_password authentication
protocol. The
default_authentication_plugin
value affects these aspects of server operation:
It determines which authentication plugin the server
assigns to new accounts created by
CREATE USER and
GRANT statements that do
not explicitly specify an authentication plugin.
The old_passwords system
variable affects password hashing for accounts that use
the mysql_native_password or
sha256_password authentication plugin.
If the default authentication plugin is one of those
plugins, the server sets
old_passwords at startup
to the value required by the plugin password hashing
method.
For an account created with either of the following
statements, the server associates the account with the
default authentication plugin and assigns the account the
given password, hashed as required by that plugin:
CREATE USER ... IDENTIFIED BY "cleartext password"; GRANT ... IDENTIFIED BY "cleartext password";
For an account created with either of the following
statements, the server associates the account with the
default authentication plugin and assigns the account the
given password hash, if the password hash has the format
required by the plugin:
CREATE USER ... IDENTIFIED BY PASSWORD "encrypted password"; GRANT ... IDENTIFIED BY PASSWORD "encrypted password";If the password hash is not in the format required by the
default authentication plugin, the statement fails.
我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题
本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 MySQL Variables default_authentication_plugin 数据库 参数变量解释及正确配置使用
相关文章
- MySQL数据库管理:最佳实践(mysql数据库管理)
- MySQL结果格式化技术实现步骤(mysql结果格式化)
- MySQL数据库:实战练习题精选(mysql数据库练习题)
- MySQL 数据库分析:深入了解数据库操作原理(mysql数据库分析)
- MySQL Status Last_query_cost 数据库状态作用意思及如何正确
- MySQL Variables keep_files_on_create 数据库 参数变量解释及正确配置使用
- MySQL实现DOS命令行操控(dos打开mysql)
- MySQL连接器安装指南 快速连接数据库(mysql连接器安装)
- 使用DOS操作MySQL数据库(dos操作mysql)
- 数据库MySQL数据库之旅:入门指引(进入mysql)
- MySQL中排序Null值的技巧(mysql排序null)
- MySQL初始化root密码:必要知识与步骤(mysql初始化root密码)
- 深入学习计算机二级数据库MySQL:解密其运作机制和数据管理核心(计算机二级数据库mysql)
- MySQL 更改字符集:一步搞定(mysql更改字符集)
- MySQL 主从复制: 原理与实现(mysql主从复制原理)
- 如何快速入门:零基础学习MySQL(零基础学mysql)
- 如何进行MySQL内核调优?25个关键字教你实现数据库性能优化!(mysql内核调优)
- MySQL索引语句:优化数据库性能的必要步骤(mysql建索引语句)
- 实时监测MySQL数据库,保障数据稳定性(mysql数据库监测)
- MySQL更新时间:如何有效管理数据库中的数据更新(mysql更新时间)
- MySQL数据库为企业带来可观功能收益(mysql 数据库 应用)
- MySQL命令快速建立数据库(mysql 命令建数据库)
- 如何在MySQL中修改函数(mysql中修改函数)
- MySQL中使用XOR运算符优化查询条件(mysql中xor)
- 效MySQL查询实现有效数据获取(c mysql查询有)
- MySQL的C API之旅让我们开始吧(c api访问mysql)
- BCB程序与MySQL数据库连接实现信息交互(BCB 连接MYSQL)
- API控制MySQL数据库快速便捷(api控制mysql)
- AMH简易教程快速导入MySQL数据库(amh mysql 导入)
- MySQL升级到XP系统支持(mysql xp 支持)
- 如何设置MySQL避免不主动提交更改(mysql不主动提交更改)
- 使用MySQL实现两数相乘的简便方法(mysql 两数相乘)
- MySQL 如何处理下单负数问题(mysql 下单负数)
- MySQL数据库在上位机的应用探究(mysql上位机)
- 掌握MySQL优化技巧,提升存储与查询效率(mysql =x效率)