Salutare doresc sa fac un mic tutorial despre instalarea bazelor de date pe sistemele de operare FreeBsd.Eu unul folosesc asta la serverele de jocuri pe care le tin pe BSD si imi este foarte util.Deci sa incepem cu inceputul.Prima data vom face update la toate porturile sistemului prin comanda:
(daca avem deja porturile updatate sarim peste acest pas)
Pasul urmator este sa mergem in directorul in care se afla modulul mysql:
(mysql50 este versiunea serverului ce va fi instalata)
Dupa ce am accesat acest director vom da comanda de instalare si anume:
Vreau sa precizez ca instalarea dureaza in jur de 10 15 minute mie de obicei cam atat imi ia.
Urmatorul pas dupa finalizarea instalarii va fi sa creem o baza de date cu comanda:
Acum vom da permisiuni serverului prin comanda:
respectiv:
Introducem aceasta comanda in consola dupa care dam enter de 2 ori:
Acum vom face userul root si parola pe care o vom folosi la accesarea mysql prin comanda:
(unde scrie parolameaaici scrieti parola dorita.)
Dupa ce am facut acest lucru vom edita configuratia sistemului pentru a permite rularea MySQL:
Mergem si editam configuratia adaugand:
Efectuam un reboot dupa care dam comanda:
Acum vom creea userul root:
care va fi identificat de parola cu urmatoarea comanda:
IDENTIFIED BY 'parola ta aici' WITH GRANT OPTION;