Quantcast
Channel: SBFspot Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 360

Commented Unassigned: Remote Mysql connection [148]

$
0
0
Hi,

As I already ran into an issue with a corrupt SD card on my raspberry pi for the second time, running only sbfspot, I wanted to install the latest version, with a mysql DB, running on a synology NAS

I based myself on the documentation "SBFspot V3 Quick Reference Linux EN 1.0.pdf"

Everything seems to going ok (DB connection test is also funtioning), until I run an SBFspot test ( /usr/local/bin/sbfspot.3/SBFspot -v -finq -nocsv)

It connects to the inverters, reads all data, but when trying to connect to the MYSQL DB, it fails


```
[2016-02-20 10:21:17.755] Error: Can't open MySQL db [/home/pi/smadata/SBFspot.db] : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)_

```

for some reason, it looks like it is still trying to connect to a local SQLite DB...

Folowing is the relevant DB connection info from the SBFSpot.cfg file

```
# SQLite
# SQL_Database (Fullpath to SQLite DB)
# Windows: C:\Users\Public\SMAdata\SBFspot.db
# Linux : /home/pi/smadata/SBFspot.db
# SQL_Database=/home/pi/smadata/SBFspot.db

# MySQL
SQL_Database=SBFspot
SQL_Hostname=192.168.10.10
SQL_Username=SBFspotUser
SQL_Password=password

```

The connectionstring I used for testing the DB connection (this is working):
```
mysql --host=192.168.10.10 --user=SBFspotUser --password=password

```

Anybody an idea?
Comments: .... see file attachment "debug.log"...

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>