Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can establish a connection with MariaDB running in a Docker container through DBeaver using the following steps:

  1. Start the MariaDB container in daemon mode
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest
  1. Find the IP address of the container
docker inspect --format '{{ .NetworkSettings.IPAddress }}' mariadb
  1. Open DBeaver and click on the "New Connection" button.

  2. Choose "MariaDB" as the connection type and fill in the required connection details.

  3. Enter the IP address of the container in the "Host" field.

  4. Set the "Port" field to the port you mapped when starting the container. The default port for MariaDB is 3306.

  5. Enter "root" as the username and the password that you set when starting the container.

  6. Click "Test Connection" to ensure that the details are correct and the connection is successful.

  7. Once the connection is established, you can start working with the database in DBeaver.