Last Updated: February 25, 2016
·
337
· ryanwild

Add user to MySQL database

CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON `databasename`.* TO 'username'@'%';
FLUSH PRIVILEGES;