Metin2 Installing mysql on FreeBSD

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

GT_Rambo

Member
Joined
Feb 13, 2021
Messages
38
Credits
0
Installing mysql on FreeBSD.

# Updates the pkg archive.


Bash:
Expand Collapse Copy
pkg update -f


# mysql installs client and server.

Bash:
Expand Collapse Copy
pkg install mysql56-client mysql56-server


# Create password database.

Bash:
Expand Collapse Copy
pwd_mkdb -p /etc/master.passwd


# Grant permissions to the mysql folder.

Bash:
Expand Collapse Copy
chown -R mysql /var/db/mysql/
chgrp -R mysql /var/db/mysql/


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

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


# run mysql server.

Code:
Expand Collapse Copy
service mysql-server start


# Changing the root password.

Bash:
Expand Collapse Copy
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:
Expand Collapse Copy
mysql -p
CREATE USER 'root'@'%' IDENTIFIED BY 'xxx';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
flush privileges;
quit;
 
ee /etc/sysctl.conf
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
security.bsd.see_jail_proc=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1

Just for minimal security
 
Back
Top