GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘password’;
报错
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.
在MySQL8中授权指令指令正确的是
grant all privileges on *.* to 'root’@’%’ IDENTIFIED' ;
不要后面的IDENTIFIED BY ‘password’