CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;
CREATE USER 'norris'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'newuser'@'%' IDENTIFIED BY 'user_password';
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'%';
SHOW GRANTS FOR 'newuser'@'%';
FLUSH PRIVILEGES;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'username'@'localhost';
FLUSH PRIVILEGES;
mysql> create user dbuser33 identified by "passw";
mysql> grant select, insert, update on testdb1.* to 'dbuser33';
CREATE USER 'pdam'@'localhost' IDENTIFIED BY 'pdamP@ssw0rd'; # create user
GRANT ALL PRIVILEGES ON `pdam_db`.* TO 'pdam'@'localhost'; # set db access
FLUSH PRIVILEGES; # Reload
CREATE USER 'karyawan'@'localhost' IDENTIFIED BY 't3l4P@ssword';
GRANT ALL PRIVILEGES ON `telabapak_db`.* TO 'karyawan'@'localhost';
CREATE USER 'someusername'@'localhost' IDENTIFIED BY 'password'
CREATE USER 'testuser'@'%' IDENTIFIED BY 'password';