Setup New Database On My Sql

Posted by Weston Ganger

In the mysql prompt:


CREATE DATABASE mydb;
CREATE USER user@localhost;
SET PASSWORD FOR user@localhost= PASSWORD("password");
GRANT ALL PRIVILEGES ON mydb.* TO user@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Article Topic:Software Development - Linux

Date:April 28, 2014

Recommended Posts