Add native support MYSQL8 (#462)

* Add native Support for MYSQL Version 8.x

* Adaptation of the documentation for MYSQL 8.x

* Backup note added
This commit is contained in:
Jonathan Starck
2022-10-27 11:37:07 +02:00
committed by GitHub
parent 4fa02c2785
commit 4aa7a7032c
4 changed files with 8 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ All that is left to do now is bring up the container
### Running on ARM64 (Raspberry Pi 4)
When deploying on an ARM64 system, you need to comment out the `image: mysql:5` line and uncomment `image: mariadb:10.4` in the `docker-compose.yml` file.
When deploying on an ARM64 system, you need to comment out the `image: mysql:8` line and uncomment `image: mariadb:10.4` in the `docker-compose.yml` file.
### Updating the Image when using `docker-compose`
@@ -95,6 +95,7 @@ To upgrade to a newer release image, please make sure to update the `docker-comp
git pull
```
It is recommended to perform a backup before.
You may need to manually merge any changes that cannot be merged automatically by git.
### Thanks

View File

@@ -32,6 +32,10 @@ FROM php:${PHP_VERSION}-fpm-alpine3.15 as prod
LABEL maintainer="David Bomba <turbo124@gmail.com>"
# Adding caching_sha2_password.so
# With this we get native support for caching_sha2_password
RUN apk add --no-cache mariadb-connector-c
RUN mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
# Install PHP extensions

View File

@@ -1,4 +1,4 @@
FROM mysql:5
FROM mysql:8
# When running on ARM64 use MariaDB instead of MySQL
#FROM mariadb:10.4
ENV force_color_prompt yes

View File

@@ -38,7 +38,7 @@ services:
- "in5.localhost:192.168.0.124 " #host and ip
db:
image: mysql:5
image: mysql:8
# When running on ARM64 use MariaDB instead of MySQL
# image: mariadb:10.4
# For auto DB backups comment out image and use the build block below