MYSQL 8.0 sql_mode NO_AUTO_CREATE_USER 的问题

摘要:
MySQL 8.0_mode=NO_AUTO_CREATE_USER中的SQL已被放弃。在MySQL8.0.11中,已经删除了与帐户管理相关的一些声明功能,例如使用GRANT语句来定义用户帐户的非特权特性

在Mysql 8.0中

sql_mode= NO_AUTO_CREATE_USER

已经被废弃了。

In MySQL 8.0.11, several deprecated features related to account management have been removed, such as use of the GRANT statement to modify nonprivilege characteristics of user accounts, the NO_AUTO_CREATE_USER SQL mode, the PASSWORD() function, and the old_passwords system variable.

Replication from MySQL 5.7 to 8.0 of statements that refer to these removed features can cause replication failure. Applications that use any of the removed features should be revised to avoid them and use alternatives when possible, as described in Features Removed in MySQL 8.0.

To avoid a startup failure on MySQL 8.0, remove any instance of NO_AUTO_CREATE_USER from sql_mode system variable settings in MySQL option files.

Loading a dump file that includes the NO_AUTO_CREATE_USER SQL mode in stored program definitions into a MySQL 8.0 server causes a failure. As of MySQL 5.7.24 and MySQL 8.0.13, mysqldump removes NO_AUTO_CREATE_USER from stored program definitions. Dump files created with an earlier version of mysqldump must be modified manually to remove instances of NO_AUTO_CREATE_USER.

免责声明:文章转载自《MYSQL 8.0 sql_mode NO_AUTO_CREATE_USER 的问题》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇HTML控件篇 -- inputInnoDB: The innodb_system data file 'ibdata1' must be writable错误下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

mysql死锁问题分析

https://blog.csdn.net/BaiHuaXiu123/article/details/54015279 SHOW GLOBAL VARIABLES LIKE 'innodb_deadlock_detect';SHOW GLOBAL VARIABLES LIKE 'innodb_lock_wait_timeout';SHOW GLOBAL V...

sqlmap详细使用 [精简]

1. 基础用法: 一下./sqlmap.py 在kali和backtrack中使用sqlmap的时候,直接用:sqlmap ./sqlmap.py -u “注入地址” -v 1 –dbs // 列举数据库 ./sqlmap.py -u “注入地址” -v 1 –current-db // 当前数据库 ./sqlmap.py -u “注入地址” -v 1 –...

Linux搭建主从数据库服务器(主从复制)

配置主机数据库: 1.克隆linux操作系统             2.修改Linux系统主机IP地址   主机IP:192.168.247.150   从机IP:192.168.247.151        3.通过xshell连接Master 连接主机IP:ssh 192.168.247.150   这里有可能连接失败。   方案一:将虚拟机的网络适...

MySQL之IDE工具介绍及数据备份

一、IDE工具介绍 生产环境还是推荐使用mysql命令行,但为了方便我们测试,可以使用IDE工具 下载链接:https://pan.baidu.com/s/1bpo5mqj 二、MySQL数据备份 #1. 物理备份: 直接复制数据库文件,适用于大型数据库环境( 如数据文件、控制文件、归档日志文件等)。但不能恢复到异构系统中如Windows。 #2. 逻辑...

【Centos7裁剪】

#!/bin/sh rootdir=`pwd` rm -rf ${rootdir}/centos* KERNEL_DIR=${rootdir}/kernel ROOTFS_DIR=${rootdir}/rootfs if [ -d ${KERNEL_DIR} ]; then echo "remove kernel dir" rm -rf...

Windows 安装mysql及修改默认文件存储路径

本文接下来,示例将数据库data移到E盘:4、首先通过cmd进入控制台,输入: mysql -u root -p然后输入密码,进入mysql. 进入mysql之后,通过如下命令查看data默认存储路径: showvariableslike'%dir%';路径如图: 5、接下来,就可以修改data路径了。 关闭mysql服务 (mysql80是我的数据库名...