Setup New Database On My Sql

Posted By Weston Ganger

<p>In the mysql prompt:</p>

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