Code

updated the sql to permit the creation of the database from the console
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 27 Nov 2005 18:35:11 +0000 (18:35 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 27 Nov 2005 18:35:11 +0000 (18:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2084 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/mysql/gofon/gofon.sql
contrib/mysql/golog/golog.sql

index 397c11a347600b7bdb8a339c60afb0a0cefbd509..be8b8422064e623779312293bbacc64792f7a11c 100644 (file)
@@ -1,4 +1,5 @@
 create database asteriskcdrdb;
+use asteriskcdrdb;
 
 create table cdr (
   calldate datetime NOT NULL default '0000-00-00 00:00:00',
@@ -19,3 +20,5 @@ create table cdr (
   userfield varchar(255) NOT NULL default ''
 );
 
+GRANT INSERT,SELECT ON asteriskcdrdb.cdr TO asterisk@localhost IDENTIFIED BY 'somemysqlpass';
+
index 6e0252af43ad3174733b787b93a40d3ffbfa4576..0461fdc48e191f0c86ac93e938482def37268d3b 100644 (file)
@@ -1,5 +1,6 @@
 
-create database golog with owner gomon;
+create database golog;
+use golog;
 
 create table golog (
        time_stamp DATETIME,
@@ -10,4 +11,4 @@ create table golog (
        matched_ts DATETIME
        );
 
-GRANT ALL PRIVILEGES ON golog TO gomon WITH GRANT OPTION;
+GRANT INSERT,SELECT,DELETE ON golog.golog TO gomon@localhost IDENTIFIED BY 'somemysqlpass';