# MySQL on SD card

**URL:** <https://www.wago.community/t/mysql-on-sd-card/2243>\
**Category:** Hardware and Linux\
**Tags:** pfc200, docker, linux\
**Created:** [August 21, 2025, 12:01pm UTC](https://www.wago.community/t/mysql-on-sd-card/2243 "2025-08-21T12:01:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Justin](https://www.wago.community/u/Justin)\
**Post date:** [August 21, 2025, 12:01pm UTC](https://www.wago.community/t/mysql-on-sd-card/2243/1 "2025-08-21T12:01:26Z")

</div>

I am trying to use MySQL in a Docker container on a PFC200 (750-8217) to manage a database stored on an SD card (758-879/000-001). Following advice on this [thread](https://www.wago.community/t/pfc200v3-with-mysql/2196/17), I have been able to successfully launch the MySQL server in a Docker container on the PFC200 when the database is stored in flash memory. Unfortunately, attempts to do the same with the database stored on the SD card have failed. The MySQL server continually restarts and does not seem to be able to write to the SD card. Looking at permissions, I see that these are set to rwxrwxr-x and attempts to chmod 777 have no effect. If this is a permissions issue, then my inability to alter permissions suggests to me that there is a config file I should adjust, but I am not sure where to look. Any advice very gratefully received.

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [August 22, 2025, 5:44am UTC](https://www.wago.community/t/mysql-on-sd-card/2243/2 "2025-08-22T05:44:38Z")

</div>

Have you followed this step in order to locate Docker ressources on the SD card ?  
If yes, there might be a problem with the SD card itself. Is it an industrial grade like WAGO SD card ?

Try formatting it first, in ext4 (explained in the procedure below).  
Once it’s all set, I would recommand to reboot the PFC before doing the Docker container installation. Sometimes the SD card is not mounted properly directly after the change.  
Also take a look to your container logs.

> [@How To: Increase storage by locating Docker resources onto an SD Card](https://www.wago.community/t/how-to-increase-storage-by-locating-docker-resources-onto-an-sd-card/258):
>
> Docker images and containers can consume hundreds of megabytes of storage, and in some cases can exceed the internal eMMC limitations. One solution is to locate the docker resources to an SD card which provides a great deal more storage (up to 32GB). Here are the steps to implement this approach. Pre-Requisites: PFC200 or Edge Controller Blank SD Card (up tp 32GB) Docker installed on the controller Steps: Insert the blank SD card into PFC200 or Edge Controller card slot reader. With a we…

---

<div class="post-metadata">

**Author:** ![Justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Justin](https://www.wago.community/u/Justin)\
**Post date:** [August 22, 2025, 2:10pm UTC](https://www.wago.community/t/mysql-on-sd-card/2243/3 "2025-08-22T14:10:36Z")

</div>

It turns out that the problem I was having was because the SD card was FAT formatted. Following the suggestion by @quenorha I realised that the format needs to be in Ext4 (to allow permissions to be assigned). This resolved my problem.
