How to add a new user in Mysql

Create a new user

CREATE USER 'gcpuser'@'localhost' IDENTIFIED BY 'password';

Grant access to a database

GRANT ALL PRIVILEGES ON * . * TO 'gcpuser'@'localhost';

Atiqur Rahman

I am MD. Atiqur Rahman graduated from BUET and is an AWS-certified solutions architect. I have successfully achieved 6 certifications from AWS including Cloud Practitioner, Solutions Architect, SysOps Administrator, and Developer Associate. I have more than 8 years of working experience as a DevOps engineer designing complex SAAS applications.

Leave a Reply