InnoDB cluster:dba.checkInstanceConfiguration报错

The account 'root'@'laptop-qm0if54i' is missing privileges required to manage an InnoDB cluster:

Missing global privileges: GRANT OPTION.

resolved

For hostname

mysql>use mysql;
mysql>CREATE USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
mysql>GRANT ALL ON *.* TO 'root'@'localhost';

For IP:

mysql>use mysql;
mysql>CREATE USER 'root'@'192.168.159.1' IDENTIFIED BY 'MyNewPass4!';
mysql>GRANT ALL ON *.* TO 'root'@'192.168.159.1';

For computerName:

mysql>use mysql;
mysql>CREATE USER 'root'@'laptop-qm0if54i' IDENTIFIED BY 'MyNewPass4!';
mysql>GRANT ALL ON *.* TO 'root'@'laptop-qm0if54i';