Skip to content

DB Install

Victoriano edited this page Sep 21, 2023 · 1 revision

Install DB

Mysql

sudo pacman -S mysql
# or mariadb
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo systemctl status mariadb

● mariadb.service - MariaDB 11.1.2 database server
     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: d>
     Active: active (running) since Wed 2023-09-20 22:59:13 CST; 22s ago
       Docs: man:mariadbd(8)

Install Mysql | Arch linux

Postgresql

sudo pacman -S postgresql
sudo su - postgres
initdb --locale en_US.UTF-8 -D /var/lib/postgres/data
sudo systemctl start postgres
sudo systemctl enable postgres
sudo systemctl status postgres

Instalar postgres | arch

MongoDB

yay -S mongodb-bin
sudo systemctl start mongodb.service
sudo systemctl enable mongodb.service

Install MongoDB

Never stop learning

Clone this wiki locally