This adapter saves state history into SQL DB.
Supports PostgreSQL, mysql, Microsoft SQL Server and sqlite. You can leave port 0 if default port is desired.
Use localhost\instance for host and check that TCP/IP connections are enabled.
https://msdn.microsoft.com/en-us/library/bb909712(v=vs.90).aspx
is "file"-DB and cannot manage too many events. If you have a big amount of data use real DB, like PostgreSQL and co.
You can install mysql on linux systems:
apt-get install mysql-server mysql-client
mysql -uroot -p
CREATE USER 'iobroker‘@’%’ IDENTIFIED BY 'iobroker';
GRANT ALL PRIVILEGES ON * . * TO 'iobroker'@'%';
FLUSH PRIVILEGES;
If required edit /etc/mysql/my.cnf to set bind to IP-Address for remote connect.
Warning: iobroker user is "admin". If required give limited rights to iobroker user.
- (bluefox) fix MS-SQL port settings
- (bluefox) fix error with double entries
- (bluefox) support of strings
- (smiling_Jack) Add demo Data ( todo: faster insert to db )
- (smiling_Jack) change aggregation (now same as history Adapter)
- (bluefox) bug fixing
- (bluefox) allow only 1 client for SQLite
- (bluefox) initial commit
The MIT License (MIT)
Copyright (c) 2015 bluefox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
