xxxxxxxxxx
sudo mysql #login try
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'mizan_username'@'localhost';
xxxxxxxxxx
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;
xxxxxxxxxx
# First Login mysql shell..
sudo mysql -u root -p
CREATE USER 'username'@'localhost' IDENTIFIED BY 'P4ssW0rd';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
xxxxxxxxxx
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'username'@'localhost';
FLUSH PRIVILEGES;
xxxxxxxxxx
mysql> create user dbuser33 identified by "passw";
mysql> grant select, insert, update on testdb1.* to 'dbuser33';