1] login in MySQL
mysql -u root -p
2] run the below command replace the value username and password which you want
CREATE USER ‘username’@’localhost’ IDENTIFIED BY ‘password’;
GRANT ALL PRIVILEGES ON * TO ‘username’@’localhost’;
FLUSH PRIVILEGES;
1] login in MySQL
mysql -u root -p
2] run the below command replace the value username and password which you want
CREATE USER ‘username’@’localhost’ IDENTIFIED BY ‘password’;
GRANT ALL PRIVILEGES ON * TO ‘username’@’localhost’;
FLUSH PRIVILEGES;
3 comments