Incepem cu update la toate port-urile.
portsnap fetch update && portupgrade -a
Ca sa poti instala MariaDB trebuie sa ai dezinstalate celelalte versiuni de mysql.
cd /usr/ports/databases/mysql57-server/ && make deinstall clean
cd /usr/ports/databases/mysql57-client/ && make deinstall clean
rm -rf /var/db/mysql/
sau poti folosi pkg sa dezinstalezi:
pkg remove mysql56-server mysql56-client
rm -rf /var/db/mysql/
Instalare MariaDB
cd /usr/ports/databases/mariadb100-server && make install clean
or poti instala cu pkg
pkg install databases/mariadb100-server
Doresti sa porneasca o data cu dedicat-ul tau ? executa urmatoarea comanda
echo 'mysql_enable="YES"' >> /etc/rc.conf
Porneste MariaDB
service mysql-server start
Restart MariaDB
service mysql-server restart
Stop MariaDB
service mysql-server stop
Status MariaDB
service mysql-server status
Daca vrei sa ai acces la remote, trebuie sa adaugi in my.cnf
bind-address=IP-TAU
cu urmatoarea comanda deschizi fisierul de configurare
vi /usr/local/etc/my.cnf