Tried
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
Getting
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 'root' WITH GRANT OPTION' at line 1.
Note: The same is working when tried in MySQL 5.7
Also tried
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
Getting
ERROR 1410 (42000): You are not allowed to create a user with GRANT
MySQL (8.0.11.0) username/password is root/root.
This worked for me
1) This worked for me. First, create a new user. Example: as 'foo' with pw 'bar.enter code here
2) Replace the below code with a username with 'foo'.
3) Login as user foo
Password: bar
4) Make sure your initial connection from Sequelize is set to foo with pw bar.
I heard the same problem on centOS and this worked for me (version: 8.0.11)
mysql> GRANT ALL PRIVILEGES ON . TO 'root'@'%'
Starting with MySQL 8 you no longer can (implicitly) create a user using the
GRANT
command. Use CREATE USER instead, followed by the GRANT statement: