Add new user to MySQL database
December 30, 2008
Description
Add new user to MySQL database. First, log into the MySQL console, and then run the following command, replacing databasename, username and password.
Snippet
mysql> GRANT ALL ON databasename.* TO username@localhost IDENTIFIED BY 'password';
Post new comment