«

»

Jun 12

How to create a MySQL database and user

How to create a MySQL database and user:

create database <db_name>;

create user ‘<user_name>’@'localhost’ identified by ‘<user_password>’;

grant all on <db_name>.* to <user_name>;

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>