瀏覽代碼

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`
Sven Fischer 5 年之前
父節點
當前提交
ffe5070778
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docker-compose.yml

+ 1 - 0
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}