Skip to content

Instantly share code, notes, and snippets.

@alaztetik
Created May 16, 2022 19:41
Show Gist options
  • Save alaztetik/fb2e7cd83025dd9413f0811a4b3418a2 to your computer and use it in GitHub Desktop.
Save alaztetik/fb2e7cd83025dd9413f0811a4b3418a2 to your computer and use it in GitHub Desktop.
This code shows how to manage a local MariaDB server on local

Setup for MariaDB / MySQL on Manjaro Linux

Follow these steps for a PHP-MariaDB project:

sudo pacman -S php mariadb mariadb-clients mariadb-libs
sudo mariadb-install-db
sudo systemctl enable mariadb.service
sudo systemctl start mariadb.service
sudo systemctl status mariadb.service
sudo mariadb-secure-installation (respond to the questions)
sudo mariadb

Source: Youtube

@alaztetik
Copy link
Author

start the server and run as root with password prompt:

mariadb -u root -p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment