Ask Your Question
3

How can I establish a connection with MariaDB that is running in a Docker container through dbeaver?

asked 2023-06-19 14:44:06 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-19 14:51:02 +0000

bukephalos gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-19 14:44:06 +0000

Seen: 9 times

Last updated: Jun 19 '23