summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a47b6c)
raw | patch | inline | side by side (parent: 0a47b6c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Feb 2008 09:11:21 +0000 (09:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Feb 2008 09:11:21 +0000 (09:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9180 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/contrib/mysql/logging/logging.sql | patch | blob | history |
diff --git a/gosa-core/contrib/mysql/logging/logging.sql b/gosa-core/contrib/mysql/logging/logging.sql
index 0ddf4db6450a21fd49e53d33b9233d330d69ed73..8ddf9dace13c937c7f0421a40572cecc6b5871ff 100644 (file)
-create database gosa_log;
-use gosa_log;
+CREATE DATABASE `gosa_log`;
+USE `gosa_log`;
+DROP TABLE IF EXISTS `gosa_locations`;
CREATE TABLE `gosa_locations` (
`id` int(11) NOT NULL auto_increment,
`location` text NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
-
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
+DROP TABLE IF EXISTS `gosa_log`;
CREATE TABLE `gosa_log` (
`id` int(10) unsigned NOT NULL auto_increment,
`timestamp` int(10) NOT NULL,
KEY `timestamp` (`timestamp`),
KEY `objecttype` (`objecttype`),
KEY `result` (`result`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+
+
+-- %HOST% The name of the source host (e.g. locahost,vserver-01,% WHERE % allows all)
+-- %USER% The username
+-- %PWD% The password for the new user
+
+-- CREATE USER '%USER%'@'%HOST%' IDENTIFIED BY '%PWD%';
+
+-- GRANT SELECT , INSERT , UPDATE , DELETE
+-- ON `gosa_log`.*
+-- TO '%USER%'@'%HOST%'
+-- IDENTIFIED BY '%PWD%';