Skip to main content
Topic: MariaDb - MySql (Read 1239 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

MariaDb - MySql

Does any one know how to install MariaDB or MySQL server on Artix?
From googling all I got was
Code: [Select]
pacman -S mariadb 
chattr +C /var/lib/mysql/
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
it's all installed but  I got this error
▓▒░ mariadb                                                   ░▒▓ TSTP ✘ │ 8s   │   │ 13:49:33   ▓▒░
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)

Re: MariaDb - MySql

Reply #1
You need the mariadb-initsys package as well to get the server auto started.

If you are using openrc its mariadb-openrc or mariadb-runit for runit.

Re: MariaDb - MySql

Reply #2
I swear that I was going to answer this since I saw it :'v

First install the correpont package of your init system: mariadb-openrc or mariadb-runit
After that run this line before you start the mariadb service
Code: [Select]
# mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
This is from the Arch Linux Wiki