first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
CREATE TABLE `sjaak` (
|
||||
`organization` varchar(50) NOT NULL,
|
||||
`myID` varchar(50) NOT NULL,
|
||||
`myName` varchar(50) NOT NULL,
|
||||
`mySecret` varchar(50) NOT NULL,
|
||||
`dateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`deleted` int(11) DEFAULT '0',
|
||||
PRIMARY KEY (`organization`,`dateCreated`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
|
||||
MariaDB [Flowers]> create user ignace@localhost identified by 'ignace';
|
||||
Query OK, 0 rows affected (0.00 sec)
|
||||
|
||||
MariaDB [Flowers]> grant create,update,insert on Flowers.ignace to ignace@localhost identified by 'ignace';
|
||||
ERROR 1044 (42000): Access denied for user 'dude'@'localhost' to database 'mysql'
|
||||
MariaDB [Flowers]> grant create,update,insert on Flowers.ignace to ignace@localhost;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# as root:
|
||||
create database Flowers;
|
||||
grant create,select,update,insert,grant option on Flowers.* to flower@localhost identified by '608f0b988db4a96066af7dd8870de96c';
|
||||
grant create user,reload on *.* to flower@localhost;
|
||||
flush privileges;
|
||||
|
||||
create user {0}@localhost identified by '{1}';
|
||||
grant select,update,insert on Flowers.{0} to {0}@localhost;
|
||||
flush privileges;
|
||||
|
||||
delete from ignace where organization in ('myRepository', 'Nero', 'office XP', 'SwisH');
|
||||
Reference in New Issue
Block a user