Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when configuring the mysql database #390

Open
sergio-ns opened this issue Dec 2, 2023 · 1 comment
Open

Error when configuring the mysql database #390

sergio-ns opened this issue Dec 2, 2023 · 1 comment

Comments

@sergio-ns
Copy link

sergio-ns commented Dec 2, 2023

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
Copy link
Member

Hello @sergio-ns,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants