Last Updated: February 25, 2016
·
339
· ryanwild

Add user to MySQL database

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