mysql8.0 version grant authorization

Versions before mysql8.0 can use grant to implicitly create users during authorization. This is no longer supported after 8.0, so users must be created first and then authorized. The command is as follows:

CREATE USER 'user_name'@'%' IDENTIFIED BY 'pass';

grant all privileges on *.* to 'user_name'@'%';

Guess you like

Origin blog.csdn.net/longe20111104/article/details/130521763