mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +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
166bdfc775
commit
708b785741
@ -1,13 +1,14 @@
|
|||||||
For usage instruction see commandref.html, section define
|
For usage instruction see commandref.html, section define of DbLog
|
||||||
2007-12-30bn
|
|
||||||
|
|
||||||
- 93_DbLog.pm
|
|
||||||
copy this file into <modpath>/FHEM
|
|
||||||
- db.conf
|
- db.conf
|
||||||
sample database configuration file
|
sample database configuration file
|
||||||
- fhemdb_create.sql
|
- db_create_mysql.sql
|
||||||
sample sql command to create a mysql database for logging purposes
|
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
|
- 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
|
the logging database
|
||||||
|
|
||||||
|
@ -1,36 +1,54 @@
|
|||||||
####################################################################################
|
####################################################################################
|
||||||
# database configuration file
|
# database configuration file
|
||||||
#
|
#
|
||||||
# NOTE:
|
# NOTE:
|
||||||
# If you don't use a value for user / password please delete the leading hash mark
|
# 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= (
|
#%dbconfig= (
|
||||||
# connection => "mysql:database=fhem;host=db;port=3306",
|
# connection => "mysql:database=fhem;host=<database host>;port=3306",
|
||||||
# user => "fhemuser",
|
# # 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",
|
# password => "fhempassword",
|
||||||
# # optional enable(1) / disable(0) UTF-8 support (at least V 4.042 is necessary)
|
# # optional enable UTF-8 support
|
||||||
# utf8 => 1
|
# # (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= (
|
#%dbconfig= (
|
||||||
# connection => "Pg:database=fhem;host=localhost",
|
# connection => "MariaDB:database=fhem;host=<database host>;port=3306",
|
||||||
# user => "fhemuser",
|
# # if want communication over socket-file instead of TCP/IP transport, use:
|
||||||
# password => "fhempassword"
|
# # 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= (
|
#%dbconfig= (
|
||||||
# connection => "SQLite:dbname=/opt/fhem/fhem.db",
|
# connection => "Pg:database=fhem;host=<database host>",
|
||||||
# user => "",
|
# user => "fhemuser",
|
||||||
# password => ""
|
# password => "fhempassword"
|
||||||
#);
|
#);
|
||||||
|
####################################################################################
|
||||||
|
#
|
||||||
|
## for SQLite (username and password stay empty for SQLite)
|
||||||
|
####################################################################################
|
||||||
|
#%dbconfig= (
|
||||||
|
# connection => "SQLite:dbname=/opt/fhem/fhem.db",
|
||||||
|
# user => "",
|
||||||
|
# password => ""
|
||||||
|
#);
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user