G⌬RBE/Posts/Setup a New Database and User in MySQL/Setup a New Database and User in MySQL1 January 0001·Updated: 24 August 2024·20 words·1 min· MySQL Databasesudo mysql create database my_database; CREATE USER 'user'@'localhost' IDENTIFIED BY 'PASSWORD'; GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost'; flush privileges;