wallabag / docker

Official docker-composer for wallabag.
572 stars 150 forks source link

Error when configuring the mysql database #390

Open sergio-ns opened 7 months ago

sergio-ns commented 7 months ago

I downloaded image version 2.6.7 When I run the container, wallabag does not start up and the following error is in the log file:

Starting wallabag ... Waiting for database ... Configuring the MySQL database ... ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci' at line 1

I'm using MariaDB 11.2.2 as the database

My wallabag.env:

SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql SYMFONY__ENV__DATABASE_HOST=mariadb SYMFONY__ENV__DATABASE_PORT=3306 SYMFONY__ENV__DATABASE_USER=*** SYMFONY__ENV__DATABASE_PASSWORD=*** SYMFONY__ENV__DATABASE_CHARSET=utf8mb4 SYMFONY__ENV__DOMAIN_NAME=*** SYMFONY__ENV__MAILER_HOST=*** SYMFONY__ENV__MAILER_USER=*** SYMFONY__ENV__MAILER_PASSWORD=*** SYMFONY__ENV__FROM_EMAIL=***

Kdecherf commented 4 months ago

Hello @sergio-ns,

I suspect that SYMFONY__ENV__DATABASE_NAME has an empty value, could you please set it to something like "wallabag"?