Skip to main content

Setup a New Database and User in MySQL

sudo mysql
create database my_database;
GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost' IDENTIFIED BY 'my_password' WITH GRANT OPTION;
flush privileges;