1
0
Fork 0
forked from mirror/pixelfed

docker db use native password as auth method

This commit changes the default auth plugin of mysql to
mysql_native_password, because otherwise the laravel app couldn't
connect to the mysql database. The following error was thrown:

`SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client`
This commit is contained in:
Sven Fischer 2019-11-01 19:01:40 +01:00
parent 8de7de4588
commit ffe5070778

View file

@ -60,6 +60,7 @@ services:
restart: unless-stopped
networks:
- internal
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_DATABASE=pixelfed
- MYSQL_USER=${DB_USERNAME}