Installing mysql 5.6 on FreeBSD Tipărire

  • 0

Installing mysql on FreeBSD.

# Updates the pkg archive.


Bash:
pkg update -f


# mysql installs client and server.

Bash:
pkg install mysql56-client mysql56-server


# Create password database.

Bash:
pwd_mkdb -p /etc/master.passwd


# Grant permissions to the mysql folder.

Bash:
chown -R mysql /var/db/mysql/
chgrp -R mysql /var/db/mysql/


# To activate the automatic mysql service when starting the system.

Bash:
echo 'mysql_enable="YES"' >> /etc/rc.conf


# run mysql server.

Code:
service mysql-server start


# Changing the root password.

Bash:
mysqladmin -uroot -p password
Enter password: <leave the line blank here.>
New password: <enter your new password.>
Confirm new password: <confirm to enter your new password.>


# Opening the root account to other ip addresses.
#
xxx : it's your password.

SQL:
mysql -p
CREATE USER 'root'@'%' IDENTIFIED BY 'xxx';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
flush privileges;
quit;
 

Răspunsul a fost util?

« înapoi

Powered by WHMCompleteSolution

xServere.NET în Cifre: Încredere, Stabilitate și Performanță

0
Clienți Activi
0
Servere Livrate
0%
Uptime Garantat
0
Domenii Administrate

Te muti la noi?

Migrarea catre un nou furnizor de hosting poate fi un proces complicat.
Relaxeaza-te si lasa expertii nostri sa se ocupe de tot! Vom muta site-ul tau in maxim 48 de ore.
Serviciu inclus GRATUIT la achizitionarea oricarui pachet de gazduire.

Solicită Migrare Gratuită