ArthurHeitmann / photon-reddit

Photon Reddit is a clean and modern reddit desktop client, with some cool features.
https://photon-reddit.com
GNU General Public License v3.0
79 stars 8 forks source link

Can't connect to MariaDB #4

Open Z0pyrus opened 2 years ago

Z0pyrus commented 2 years ago

I've setup photon-reddit on my local system and tried to connect to my mariadb server instance with these env.:

DB_HOST=192.168.168.26
DB_USER=Secr3t
DB_PW=Secr3t
DB_PORT=3306
DB_DB=Secr3t

The mariaDB is running in Docker on given host with the same vars. I can connect to the Database using cli with mariadb --host=192.168.168.26 -u Secr3t -p. But when I start photon-reddit it says Couldn't connect to DB.

This shows up in mariaDB logs while trying to connect: [Warning] Aborted connection 7 to db: 'Secr3t' user: 'Secr3t' host: '172.28.0.1' (Got an error reading communication packets)

ArthurHeitmann commented 2 years ago

Could it be a MariaDB configuration issue? I found these threads for MySQL (on which MariaDB is based on) https://dba.stackexchange.com/questions/19135/mysql-error-reading-communication-packets https://dba.stackexchange.com/questions/40899/mysql-error-reading-communication-packets

Z0pyrus commented 2 years ago

I will try this. Btw, the docker support is ready. You can look at my fork and if you wan't I can make an pull request