Better way to create DB

This commit is contained in:
Alexandre Iooss 2020-02-09 16:59:18 +01:00
parent 5623607e4f
commit a5c560307a
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 3 additions and 3 deletions

View File

@ -89,9 +89,9 @@ ainsi qu'un user med et un mot de passe associé.
Voici les étapes à executer pour MySQL : Voici les étapes à executer pour MySQL :
```SQL ```SQL
CREATE DATABASE med; CREATE DATABASE `club-med-cartons` CHARACTER SET utf8;
CREATE USER 'med'@'localhost' IDENTIFIED BY 'password'; CREATE USER `club-med-cartons`@`localhost` IDENTIFIED BY 'MY_SUPER_SECRET_PASSWORD'
GRANT ALL PRIVILEGES ON med.* TO 'med'@'localhost'; GRANT ALL PRIVILEGES ON `club-med-cartons`.* TO `club-med-cartons`@`localhost`;
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
``` ```