From ffe507077861e43f2a4d840f6ce2ac193cf007fc Mon Sep 17 00:00:00 2001 From: Sven Fischer Date: Fri, 1 Nov 2019 19:01:40 +0100 Subject: [PATCH] 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` --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 0d6c501a8..9dc61f205 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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}