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.
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
Asked: 2023-06-19 14:44:06 +0000
Seen: 9 times
Last updated: Jun 19 '23
What is the method for placing parentheses in column names when creating a table using an SQL query?
How can I use bash to select rows from a table by referencing another table?
What are the different technology combinations available for LAMP stack?
How can I install MariaDB and MySQL on my MacBook Pro?
Why does Mariadb produce an error for a subquery's unknown column, while MySQL runs without issues?
How can a "where in" query be executed using the MariaDB Python Connector?
What causes an error in SQLAlchemy and MariaDB when using a column named 'row_number'?
What is the issue encountered when attempting to use Spring Batch with MariaDB?