MySql教程

MYSQL 8.0 sql_mode NO_AUTO_CREATE_USER 的问题

本文主要是介绍MYSQL 8.0 sql_mode NO_AUTO_CREATE_USER 的问题,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

在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 的问题的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!