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

Connecting to alpine-mariadb from another Docker container - arm32v7 #54

Closed
emmaparker96 opened this issue Jun 10, 2021 · 2 comments
Closed

Comments

@emmaparker96
Copy link

I want to access data of an alpine-mariadb from a Python script that is in another Docker container on a Raspberry Pi 2 (armhf/arm32v7).

After executing the command:
docker run -it --name mariadb -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_DATABASE=mydb -e MYSQL_USER=root -e MYSQL_PASSWORD=password -e MYSQL_ROOT_PASSWORD=password yobasystems/alpine-mariadb:arm32v7
the following output arises:

[i] mysqld not found, creating....
[i] MySQL data directory not found, creating initial DBs
43516-01-16 16:49:34 0 [ERROR] This MySQL server doesn't support dates later than 2038
[i] Creating database: mydb
[i] with character set: 'utf8' and collation: 'utf8_general_ci'
[i] Creating user: root with password password
323662-03-12  5:39:11 0 [ERROR] This MySQL server doesn't support dates later than 2038
/scripts/run.sh: ignoring or entrypoint initdb empty /docker-entrypoint-initdb.d/*
MySQL init process done. Ready for start up.
exec /usr/bin/mysqld --user=mysql --console --skip-name-resolve --skip-networking=0

Unfortunately, I can't get a connection from Python to the database. Is Docker Compose needed for this?

@dominictayloruk
Copy link
Member

dominictayloruk commented Jun 10, 2021

See #53 (comment)

You now have yobasystems/alpine-mariadb:arm32v7

when it should be yobasystems/alpine-mariadb:10.5.9 or even yobasystems/alpine-mariadb:10.5.9-armhf

@dominictayloruk
Copy link
Member

Also see here around the issue you have in your logs #47

This MySQL server doesn't support dates later than 2038

Thats why when you said you were running pi 2, i suggested the 10.5.9 image.

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