Mysql8 adds a user and gives all permissions to solve the error

Mysql8 permission setting error resolution

grant all privileges on statement
error You have an error in your SQL syntax
solution

error code

GRANT ALL PRIVILEGES ON . TO 'aoot'@'%';

correct code

GRANT ALL PRIVILEGES ON *.* TO 'aoot'@'%';

Done

mysql8 adds a user and gives all permissions

Enter MySQL as root

Create user

CREATE USER 'aoot'@'%' IDENTIFIED BY 'root23';

Setting permissions

GRANT ALL PRIVILEGES ON *.* TO 'aoot'@'%';

Permissions take effect

FLUSH PRIVILEGES;

Guess you like

Origin blog.csdn.net/gixome/article/details/132767266