Pentru a instala mysql 5.5 pe server, va logati in putty dupa care aveti mai jos codurile pentru instalare, le folositi in ordine de sus in jos.
pkg install –y mysql55-server mysql55-client
y
echo ‘mysql_enable=”YES”’ >> /etc/rc.conf
service mysql-server onestart
mysql
chown –R mysql /var/db/mysql/
chgrp –R mysql /var/db/mysql/
/usr/local/bin/mysql_safe –user=mysql &
/usr/local/bin/mysqladmin –u root password xservere.ro
mysql –p
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’
IDENTIFIED BY ‘xservere.ro’ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO root@”%” IDENTIFIED BY “xservere.ro”;
GRANT ALL PRIVILEGES ON *.* TO ‘mt2’@’localhost’ IDENTIFIED BY ‘mt2!@#’;
flush privileges;
quit
service mysql-server onerestart
P.S. unde gasiti scris "xservere.ro" inlocuiti cu ce parola vreti pentru mysql