• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MySQL database
#2
Yes this is normal. The MySQL docker image that you are loading is made for x86/x64 CPU processors:

   

And netPI CPU is an ARM based processor. So loading the standard MySQL container will fail in any case.

Remark: by the way the message "standard_init_linux.go:211: exec user process caused "exec format error"" is nothing special specifically for this container only. It is reported by any container worldwide if the processor type does not match.

So in your case you need to load a container made for ARM processors: I found in this Hilscher forum the following thread https://forum.hilscher.com/thread-316.html from year 2018. In this thread there is a container referenced named https://hub.docker.com/r/hypriot/rpi-mysql/. Its landing page describes the parameter the container needs. Mainly I see just the environment variable
Code:
MYSQL_ROOT_PASSWORD=my-secret-pw
that needs to be set. So once you want to start this container on netPI just define this environment variable MYSQL_ROOT_PASSWORD with a password of your choice and let it run.

In my post https://forum.hilscher.com/thread-316.html I managed it to get to work successfully.  So you should be able to do the very same.

At the end I have a question related to MySQL in general: why do you need to use MySQL? What do you want to store in this database?

Thx
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
MySQL database - by DSongra - December-31st-2020, 01:55 PM
RE: MySQL database - by Armin@netPI - December-31st-2020, 03:46 PM
RE: MySQL database - by MGharat - January-6th-2021, 06:05 AM
RE: MySQL database - by Armin@netPI - January-6th-2021, 06:35 AM
RE: MySQL database - by Armin@netPI - January-6th-2021, 01:37 PM
RE: MySQL database - by DSongra - January-7th-2021, 05:04 AM
RE: MySQL database - by Armin@netPI - January-7th-2021, 05:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] MySQL Container / Server in another Container? paubau 2 2,984 September-5th-2018, 08:00 AM
Last Post: paubau

Forum Jump:


Users browsing this thread: 2 Guest(s)