Como instalar os banco de dados MySql e PostgresSql no Endless OS?

Boa tarde Sr(a)s,
Sou novo aqui e gostaria de saber como instalo o banco de dados Mysql e Postgre

Agradeço desde já a atenção

We are going to use a Docker Image for MariaDB (the MySQL Fork) as this is the most simple and straightforward process

Pull the Image and run the server

podman pull docker.io/library/mariadb
podman run --name mariadb-server -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mariadb -d docker.io/library/mariadb

Verify if the server is running

podman ps

This should yield “UP” as the status for the container if everything worked.

Connect to the Server

You are now able to connect to the server from the outside via any tool that suits your need like “Sequeler”. If you prefer the command line, you can also use:

podman exec -it mariadb-server mysql --user=root --password=mariadb

Starting / Stopping the Server

Stop with:

podman stop mariadb-server

Start with:

podman start mariadb-server
1 Like

thanks ! Shalom :grinning:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.