From ee66d7d9df1d4341d5508b331aad47f75909a767 Mon Sep 17 00:00:00 2001 From: opensides Date: Sun, 27 Nov 2005 18:35:11 +0000 Subject: [PATCH] updated the sql to permit the creation of the database from the console git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2084 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/mysql/gofon/gofon.sql | 3 +++ contrib/mysql/golog/golog.sql | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/mysql/gofon/gofon.sql b/contrib/mysql/gofon/gofon.sql index 397c11a34..be8b84220 100644 --- a/contrib/mysql/gofon/gofon.sql +++ b/contrib/mysql/gofon/gofon.sql @@ -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'; + diff --git a/contrib/mysql/golog/golog.sql b/contrib/mysql/golog/golog.sql index 6e0252af4..0461fdc48 100644 --- a/contrib/mysql/golog/golog.sql +++ b/contrib/mysql/golog/golog.sql @@ -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'; -- 2.30.2