<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hallo,<div class=""><br class=""></div><div class="">ich habe meinem Volkszähler am laufen und wollte nun die Datenbank auf meiner Synology benutzten. </div><div class=""><br class=""></div><div class="">Hierzu habe ich folgende dinge gemacht:</div><div class="">- MariaDB und myphpadmin auf der Synology installiert</div><div class="">- auf myphpadmin eingeloggt und eine Datenbank „Volkszähler“ erstellt und dort einen Benutzer erstellt der auf diese Datenbank volle Zugriffsrechte hat </div><div class="">- in der Datei /var/www/<a href="http://volkszaehler.org/etc/volkszaehler.php.conf" class="">volkszaehler.org/etc/volkszaehler.php.conf</a> folgende Sachen geändert</div><div class=""><br class=""></div><div class="">Benutzer und Passwort natürlich geändert (:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * PDO driver for Doctrine DBAL</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> *</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * See Doctrine doc for details: <a href="http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en#getting-a-connection:driver" class="">http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en#getting-a-connection:driver</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> */</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">$config['db']['driver']                         = 'pdo_mysql';</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 15px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class="">/**</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * Hostname of database server</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> *</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * Use 'localhost' for the machine your webserver is running on.</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * See Doctrine doc for details: <a href="http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en" class="">http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> */</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">$config['db']['host']                           = '192.168.0.100';</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 15px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class="">/**</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * Username for the database server</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> *</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * See Doctrine doc for details: <a href="http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en" class="">http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> */</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">$config['db']['user'] = ‚USER';</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class="">**</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * Password for the database server</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> *</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * See Doctrine doc for details: <a href="http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en" class="">http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> */</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">$config['db']['password'] = ‚PASSWORD';</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 15px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class="">/**</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * @var string database name</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> *</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * See Doctrine doc for details: <a href="http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en" class="">http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> */</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">$config['db']['dbname'] = 'Volkszaehler';</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 15px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class="">/**</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * @var database connection encoding - should not be changed</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> *</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> * See <a href="http://stackoverflow.com/questions/13399912/symfony2-charset-for-queries-parameters" class="">http://stackoverflow.com/questions/13399912/symfony2-charset-for-queries-parameters</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""> */</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">$config['db']['charset']                        = 'UTF8';</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">in der vzlogger.log bekomme ich folgende Meldung</div><div class=""><div class="">[[Feb 14 10:59:26][s0]   Reading S0 - returning 2 readings (n=1 n_neg = 0)</div><div class="">[Feb 14 10:59:26][mtr0] Got 2 new readings from meter:</div><div class="">[Feb 14 10:59:26][mtr0] Reading: id=Power/StringItentifier: value=262.62 ts=1455443966918</div><div class="">[Feb 14 10:59:26][mtr0] Reading: id=Impulse/StringItentifier: value=1.00 ts=1455443966918</div><div class="">[Feb 14 10:59:26][chn0] Adding reading to queue (value=1.00 ts=1455443966918)</div><div class="">[Feb 14 10:59:26][SUM]  1.000000 @ 1455443966918</div><div class="">[Feb 14 10:59:26][SUM]  RESULT 1.000000 @ 1455443966918</div><div class="">[Feb 14 10:59:26][chn0] ==> number of tuples: 1</div><div class="">[Feb 14 10:59:26][chn0] compare: 1455443953210 1455443966918</div><div class="">[Feb 14 10:59:26][chn0] JSON request body: [ [ 1455443966918, 1 ] ]</div><div class="">[Feb 14 10:59:26][chn0] CURL: Hostname was found in DNS cache</div><div class="">[Feb 14 10:59:26][chn0] CURL:   Trying 127.0.0.1...</div><div class="">[Feb 14 10:59:26][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#39)</div><div class="">[Feb 14 10:59:26][chn0] Buffer dump (size=0): {}</div><div class="">[Feb 14 10:59:26][chn0] CURL: Sent 24 bytes.. </div><div class="">[Feb 14 10:59:26][chn0] CURL: Sent '[ [ 1455443966918, 1 ] ]' bytes</div><div class="">[Feb 14 10:59:26][chn0] CURL: upload completely sent off: 24 out of 24 bytes</div><div class="">[Feb 14 10:59:27][chn0] CURL: HTTP 1.0, assume close after body</div><div class="">[Feb 14 10:59:27][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:27][chn0] CURL: Received 598 bytes</div><div class=""><font color="#ff2600" class="">[Feb 14 10:59:27][chn0] CURL: Received '{"version":"0.3","exception":{"message":"An exception occurred while executing </font></div><div class=""><font color="#ff2600" class="">'SELECT e0_.id AS id0, e0_.uuid AS uuid1, e0_.type AS type2, p1_.id AS id3, p1_.pkey AS pkey4, p1_.value AS value5, </font></div><div class=""><font color="#ff2600" class="">e0_.class AS class6, p1_.entity_id AS entity_id7 FROM entities e0_ LEFT JOIN properties p1_ ON e0_.id = p1_.entity_id </font></div><div class=""><font color="#ff2600" class="">WHERE (e0_.uuid = ?) AND e0_.class IN ('channel', 'aggregator') ORDER BY p1_.pkey ASC' with params </font></div><div class=""><font color="#ff2600" class="">[\"bb9dd5f0-d267-11e5-8d0c-5bb1b6a29b44\"]:\n\nSQLSTATE[42S02]: Base table or view not found: 1146 Table </font></div><div class=""><font color="#ff2600" class="">'Volkszaehler.entities' doesn't exist","type":"TableNotFoundException","code":0}}' bytes</font></div><div class="">[Feb 14 10:59:27][chn0] CURL: Closing connection 39</div><div class="">[Feb 14 10:59:27][chn0] CURL Request succeeded with code: 200</div><div class="">[Feb 14 10:59:27][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:27][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:28][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:28][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:28][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:29][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:29][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:29][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:30][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:30][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:30][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:31][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:31][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:31][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:32][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:32][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Feb 14 10:59:32][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Wie bekomme ich es hin damit er die Tabellen selbst anlegt oder muss ich das alles händigt erledigen?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Danke</div><div class=""><br class=""></div><div class="">Daniel</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>