create database user code example
Example 1: how to create new database user
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
Example 2: how to create new database user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Example 3: CRETE DATABASE AND ADD USER
GRANT ALL PRIVILEGES ON DATABASE guru99 TO mytest;