在服务器版本上授予 mysql 的所有语法:8.0.11 MySQL

Grant all syntax for mysql on Server version: 8.0.11 MySQL

有什么问题

grant all privileges on apip.* to 'root'@'%'  IDENTIFIED BY PASSWORD 'rootadmin';

它给出以下错误

ERROR 1064 (42000): 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 'IDENTIFIED BY PASSWORD 'rootadmin'' at line 1

IDENTIFIED BYCREATE USER command, not the GRANT命令接受的关键字。