- Open a terminal and login to MySQL as root:
mysql --user="root" --password="your_root_password" - Create a new user and password with the following command:
CREATE USER 'new_username'@'localhost' IDENTIFIED BY 'password_for_new_username'; - Assign privileges to the new user, enter the command:
GRANT ALL ON *.* TO 'new_username'@'localhost'; - Exit MySQL interface, enter:
exit
No comments:
Post a Comment