console create mysql user code example
Example 1: create user mysql
CREATE USER 'norris'@'localhost' IDENTIFIED BY 'password';
Example 2: create mysql user
CREATE USER 'newuser'@'%' IDENTIFIED BY 'user_password';
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'%';
SHOW GRANTS FOR 'newuser'@'%';
FLUSH PRIVILEGES;