Sample create user command for Mysql
CREATE USER 'myUser'@'localhost' IDENTIFIED BY 'hello';
GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO 'myUser'@'localhost';
The first command is the CREATE USER where
- myUser is the user name
- localhost is where the database is
- hello is the password
- The assigned user is myUser
- The user can use the commands SELECT,INSERT,UPDATE,DELETE on all databases in localhost
- ON *.* means that the user can use all the granted commands
- ON *DBname.* can be used to allow the user to use the commands on the database names DBname