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