1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00
date-poll-api/doc/database_creation.md

14 lines
442 B
Markdown
Raw Normal View History

2020-11-27 16:00:29 +01:00
#Database setup
In the mysql prompt, to create a new user and a dedicated database, run this:
```
CREATE DATABASE IF NOT EXISTS framadate_api;
CREATE USER 'framadate-admin'@'localhost' IDENTIFIED BY 'framadate-admin-password';
GRANT ALL PRIVILEGES ON framadate_api.* TO 'framadate-admin'@'localhost';
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'framadate-admin'@'localhost';
SHOW DATABASES;
```
now you have your config ready to host Framadate API.