2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

93_DbLog: support of MariaDB driver and more, see Forum:#137480

git-svn-id: https://svn.fhem.de/fhem/trunk@28676 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2024-03-17 19:18:17 +00:00
parent b2e83f2002
commit 59b01a61e2
2 changed files with 50 additions and 31 deletions

View File

@ -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 <modpath>/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

View File

@ -9,18 +9,36 @@
## for MySQL
####################################################################################
#%dbconfig= (
# connection => "mysql:database=fhem;host=db;port=3306",
# connection => "mysql:database=fhem;host=<database host>;port=3306",
# # if want communication over socket-file instead of TCP/IP transport, use:
# # connection => "mysql:database=fhem;mysql_socket=</path/socket-file>",
# 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 MariaDB
####################################################################################
#%dbconfig= (
# connection => "MariaDB:database=fhem;host=<database host>;port=3306",
# # if want communication over socket-file instead of TCP/IP transport, use:
# # connection => "MariaDB:database=fhem;mariadb_socket=</path/socket-file>",
# user => "fhemuser",
# password => "fhempassword",
# # optional enable communication compression between client and server
# compression => 1
#);
####################################################################################
#
## for PostgreSQL
####################################################################################
#%dbconfig= (
# connection => "Pg:database=fhem;host=localhost",
# connection => "Pg:database=fhem;host=<database host>",
# user => "fhemuser",
# password => "fhempassword"
#);