Le voilà !
This commit is contained in:
parent
6b73a5bbf5
commit
c3ab5baad7
2 changed files with 13 additions and 0 deletions
10
local/create-users.sql
Normal file
10
local/create-users.sql
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
DROP USER IF EXISTS 'cuisine-normal-user'@localhost;
|
||||||
|
DROP USER IF EXISTS 'cuisine-privileged-user'@localhost;
|
||||||
|
|
||||||
|
CREATE USER 'cuisine-normal-user'@localhost IDENTIFIED BY 'Cuisine-normal@cook';
|
||||||
|
CREATE USER 'cuisine-privileged-user'@localhost IDENTIFIED BY 'Cuisine-privileged@cook';
|
||||||
|
|
||||||
|
USE 'cuisine';
|
||||||
|
|
||||||
|
GRANT SELECT ON *.* TO 'cuisine-normal-user'@localhost;
|
||||||
|
GRANT ALL ON *.* TO 'cuisine-privileged-user'@localhost;
|
3
local/credentials.php
Normal file
3
local/credentials.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
define('db_file', 'db/cuisine.sqlite'); // l'emplacement du fichier
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue