Can't find seafile_db in mysql

I am using docker to install Seafile. When I try to look into the databases like seafile_db using mysql. It shows that there is no such database. I am sure that my Seafile server is properly running. But I am wondering how to access its mysql database.

The following is my terminal output:

sam@raspberrypi:~ $ mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 49
Server version: 10.5.19-MariaDB-0+deb11u2 Debian 11

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| phpmyadmin         |
| wptest             |
+--------------------+
5 rows in set (0.002 sec)

MariaDB [(none)]> use seafile_db;
ERROR 1049 (42000): Unknown database 'seafile_db'

Hi,

By default docker installation uses its own mariadb instance in a dedicated container, not the one on the host.

Try something like this in the folder of your compose file:

docker compose exec db mysql -u root -p

Depending on your docker version, you may have to use docker-compose instead of docker compose

Thank you!

I found docker exec -it seafile-mysql mysql -u root -p works for me. And, the password is set in docker-compose.yml file. The defualt password is db_dev.