mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-11-22 02:59:49 +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:
parent
b2e83f2002
commit
59b01a61e2
@ -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
|
||||
|
||||
|
@ -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=<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 PostgreSQL
|
||||
#
|
||||
## for MariaDB
|
||||
####################################################################################
|
||||
#%dbconfig= (
|
||||
# connection => "Pg:database=fhem;host=localhost",
|
||||
# user => "fhemuser",
|
||||
# password => "fhempassword"
|
||||
#);
|
||||
#%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 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=<database host>",
|
||||
# user => "fhemuser",
|
||||
# password => "fhempassword"
|
||||
#);
|
||||
####################################################################################
|
||||
#
|
||||
## for SQLite (username and password stay empty for SQLite)
|
||||
####################################################################################
|
||||
#%dbconfig= (
|
||||
# connection => "SQLite:dbname=/opt/fhem/fhem.db",
|
||||
# user => "",
|
||||
# password => ""
|
||||
#);
|
||||
####################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user