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;