-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathppolicy.sql
More file actions
27 lines (24 loc) · 797 Bytes
/
ppolicy.sql
File metadata and controls
27 lines (24 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--
-- Create new ppolicy database
--
CREATE DATABASE IF NOT EXISTS ppolicy;
--
-- Create new user that will be used to access database
-- You should change password 'secret' to something more secure
-- If you are using MySQL running on some different machine
-- than replace 'localhost' with appropriate domain name or '%'
--
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,LOCK TABLES
ON ppolicy.* TO 'ppolicy'@'localhost'
IDENTIFIED BY 'secret';
-- GRANT SELECT,LOCK TABLES
-- ON ppolicy.* TO 'ppolicy'@'%'
-- IDENTIFIED BY 'secret';
--
-- Apply new (user) privileges (do I need this?)
--
FLUSH PRIVILEGES;
-- table for synchronizaction changes from master DB
--CREATE TABLE `changes` (
-- `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'
--) ENGINE=MyISAM DEFAULT CHARSET=latin1;