Adding user on MySQL

This will be put here until I create a page of all those things that should be put on one cheat sheet…

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;

Leave a Reply

Your email address will not be published.