1 | initial version |
You can establish a connection with MariaDB running in a Docker container through DBeaver using the following steps:
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest
docker inspect --format '{{ .NetworkSettings.IPAddress }}' mariadb
Open DBeaver and click on the "New Connection" button.
Choose "MariaDB" as the connection type and fill in the required connection details.
Enter the IP address of the container in the "Host" field.
Set the "Port" field to the port you mapped when starting the container. The default port for MariaDB is 3306.
Enter "root" as the username and the password that you set when starting the container.
Click "Test Connection" to ensure that the details are correct and the connection is successful.
Once the connection is established, you can start working with the database in DBeaver.