From fb23f7dddeb13ce84661cc626604ce47467bf22e Mon Sep 17 00:00:00 2001 From: tobiasfaust Date: Sat, 24 Nov 2012 12:13:58 +0000 Subject: [PATCH] -rename fhemdb_create.sql to db_create_mysql.sql -added a postgresql connection example to db.conf git-svn-id: https://svn.fhem.de/fhem/trunk@2178 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/dblog/db.conf | 22 ++++++++++++++----- ...{fhemdb_create.sql => db_create_mysql.sql} | 0 2 files changed, 16 insertions(+), 6 deletions(-) rename fhem/contrib/dblog/{fhemdb_create.sql => db_create_mysql.sql} (100%) diff --git a/fhem/contrib/dblog/db.conf b/fhem/contrib/dblog/db.conf index 6141687de..65c00dfb6 100644 --- a/fhem/contrib/dblog/db.conf +++ b/fhem/contrib/dblog/db.conf @@ -2,10 +2,20 @@ # database configuration file # # +## for MySQL +################################################################ +#%dbconfig= ( +# connection => "mysql:database=fhem;host=db;port=3306", +# user => "fhemuser", +# password => "fhempassword", +#); +################################################################ # -%dbconfig= ( - connection => "mysql:database=fhem;host=db;port=3306", - user => "fhemuser", - password => "fhempassword", -); - +## for PostgreSQL +################################################################ +#%dbconfig= ( +# connection => "Pg:database=fhem;host=localhost", +# user => "fhemuser", +# password => "fhempassword" +#); +################################################################ diff --git a/fhem/contrib/dblog/fhemdb_create.sql b/fhem/contrib/dblog/db_create_mysql.sql similarity index 100% rename from fhem/contrib/dblog/fhemdb_create.sql rename to fhem/contrib/dblog/db_create_mysql.sql