User Tools

Site Tools


info:mysql:database:create
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

MySQL: Create Database

Create Database

CREATE DATABASE IF NOT EXISTS `{db}`;

Create Database and Grant Rights to a User

CREATE DATABASE IF NOT EXISTS `{db}`;
GRANT ALL PRIVILEGES ON `{db}` . * TO '{user}'@'%';
info/mysql/database/create.txt · Last modified: 2013-02-04 22:17 (external edit)