mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
Source: How to grant all privileges to root user in MySQL 8.0 – Stack Overflow
How to grant all privileges to root user in MySQL 8.0 was last modified: August 14th, 2019 by