Better way to create DB
This commit is contained in:
parent
5623607e4f
commit
a5c560307a
|
@ -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;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue