rodrigograca31
12/28/2015 - 6:35 PM

Create mysql user and give permissions

Create mysql user and give permissions

CREATE USER 'user'@'%';
SET PASSWORD FOR 'user'@'%' = PASSWORD('password');

GRANT ALL PRIVILEGES ON database.* TO 'user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;