Update database.sql

Added auto user
- TODO: make this based on some root level config file?
This commit is contained in:
Kevin Ramharak 2018-01-02 14:49:09 +01:00 committed by GitHub
parent 07d8d01c92
commit 0e15797645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,11 @@
-- make sure it exists
create database if not exists mar;
-- switch to use it
-- create user (will be created if not exists) and grant privileges
grant all privileges on `mar`.* to `mar`@`localhost` identified by 'mar';
flush privileges;
-- switch to use the database
use mar;
-- create tables