mysql create user
snippet in sql

mysql create user

user9775

CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;

mysql add user with all privileges

user7053

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;

create user mysql

user1908

CREATE USER 'norris'@'localhost' IDENTIFIED BY 'password';

mysql add user with all privileges

user2998

# 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;

mysql user access to database

user4361

GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password';

mysql create user

user114

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
#grant permissions to a specic database and/or table 
GRANT ALL PRIVILEGES ON database.table TO 'newuser'@'localhost';
#Or grant wildcar permission to any DB/table
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost';