diff --git a/fhem/contrib/dblog/README b/fhem/contrib/dblog/README index 0264a29ca..f45ffcaed 100644 --- a/fhem/contrib/dblog/README +++ b/fhem/contrib/dblog/README @@ -1,13 +1,14 @@ -For usage instruction see commandref.html, section define -2007-12-30bn +For usage instruction see commandref.html, section define of DbLog -- 93_DbLog.pm - copy this file into /FHEM - db.conf sample database configuration file -- fhemdb_create.sql - sample sql command to create a mysql database for logging purposes +- db_create_mysql.sql + sample sql command to create a MySQL or MariaDB database for logging purposes +- db_create_postgresql.sql + sample sql command to create a PostgreSQL database for logging purposes +- db_create_sqlite.sql + sample sql command to create a SQLite database for logging purposes - fhemdb_get.pl - sample perl script for retrieving the current (latest) data from + short sample perl script for retrieving the current (latest) data from the logging database diff --git a/fhem/contrib/dblog/db.conf b/fhem/contrib/dblog/db.conf index 93e3c643a..922643cc0 100644 --- a/fhem/contrib/dblog/db.conf +++ b/fhem/contrib/dblog/db.conf @@ -1,36 +1,54 @@ #################################################################################### -# database configuration file -# +# database configuration file +# # NOTE: # If you don't use a value for user / password please delete the leading hash mark -# and write 'user => ""' respectively 'password => ""' instead ! +# and write 'user => ""' respectively 'password => ""' instead ! # # -## for MySQL +## for MySQL #################################################################################### -#%dbconfig= ( -# connection => "mysql:database=fhem;host=db;port=3306", -# user => "fhemuser", +#%dbconfig= ( +# connection => "mysql:database=fhem;host=;port=3306", +# # if want communication over socket-file instead of TCP/IP transport, use: +# # connection => "mysql:database=fhem;mysql_socket=", +# user => "fhemuser", # password => "fhempassword", -# # optional enable(1) / disable(0) UTF-8 support (at least V 4.042 is necessary) -# utf8 => 1 -#); +# # optional enable UTF-8 support +# # (full UTF-8 support exists from DBD::mysql version 4.032, but installing version 4.042 is highly suggested) +# utf8 => 1, +# # optional enable communication compression between client and server +# compression => 1 +#); #################################################################################### -# -## for PostgreSQL +# +## for MariaDB #################################################################################### -#%dbconfig= ( -# connection => "Pg:database=fhem;host=localhost", -# user => "fhemuser", -# password => "fhempassword" -#); +#%dbconfig= ( +# connection => "MariaDB:database=fhem;host=;port=3306", +# # if want communication over socket-file instead of TCP/IP transport, use: +# # connection => "MariaDB:database=fhem;mariadb_socket=", +# user => "fhemuser", +# password => "fhempassword", +# # optional enable communication compression between client and server +# compression => 1 +#); #################################################################################### -# -## for SQLite (username and password stay empty for SQLite) +# +## for PostgreSQL #################################################################################### -#%dbconfig= ( -# connection => "SQLite:dbname=/opt/fhem/fhem.db", -# user => "", -# password => "" -#); +#%dbconfig= ( +# connection => "Pg:database=fhem;host=", +# user => "fhemuser", +# password => "fhempassword" +#); +#################################################################################### +# +## for SQLite (username and password stay empty for SQLite) +#################################################################################### +#%dbconfig= ( +# connection => "SQLite:dbname=/opt/fhem/fhem.db", +# user => "", +# password => "" +#); ####################################################################################