Create database, user, and Grant Permission

CREATE DATABASE dbname;

CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'new_password';

GRANT ALL PRIVILEGES ON database_name.* TO 'database_user'@'localhost';
FLUSH PRIVILEGES;

Related posts

Latest posts

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *