-
Notifications
You must be signed in to change notification settings - Fork 0
MariaDB Installation
Lean's edited this page Dec 12, 2025
·
10 revisions
sudo pacman -Syu
sudo pacman -S mysql
Use the MariaDB
mariadbd --version
sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mysqld
systemctl enable mysqld
First
- sudo mysql
Create a user
- CREATE USER 'username'@'%' IDENTIFIED BY 'password';
-
"%" means that all ip's is allowed to login with this credentials
Create a database
- CREATE DATABASE 'yourDB';
Give privilegies to that database
- GRANT ALL PRIVILEGES ON yourDB.* TO 'username'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
To a specific ip
- "GRANT ALL PRIVILEGES ON . TO 'username'@'127.0.0.1' IDENTIFIED BY 'password' WITH GRANT OPTION;"