seatable / seatable

SeaTable: easy like a spreadsheet, powerful like a database. Unlimited rows in a single base.

Home Page:https://seatable.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error setting up using docker-compose with existing MariaDB

dermot-mcg opened this issue · comments

When running superuser setup I get the following error:
Access denied for user 'root'@'172.18.0.22.

172.18.0.22 is the network address assigned to Sealevel front end, not the MariaDB container, is that the issue?

I have changed DB_HOST= to the container name of the existing MariaDB isntance, it's using the correct password. The logs of the existing db container show the same issue: Access denied for user 'root'@'172.18.0.22' (using password: YES). The credentials all work fine for login on the PHPMyAdmin backend (Server: container_name, user: root, password: DB_ROOT_PASSWD). What am I doing wrong?

if you look at the MariaDB user within phpmyadmin, can you confirm which host are allowed to connect using that account ?

mariadb

the hostname with % allows any source IP to connect. If it's not like that, you need to change it. From a security perspective, you should put the IP (or docker name if both are in the same docker network). It's fine to put % just to test if that is the issue.

Also, you should not be using the root for this. You should really create a dedicated user for any sort of applications using a database even if it's a dedicated mariadb instance.