Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to MariaDB #4

Open
Z0pyrus opened this issue Aug 1, 2022 · 2 comments
Open

Can't connect to MariaDB #4

Z0pyrus opened this issue Aug 1, 2022 · 2 comments

Comments

@Z0pyrus
Copy link

Z0pyrus commented Aug 1, 2022

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
Copy link
Owner

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
Copy link
Author

Z0pyrus commented Aug 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants