What's new
What's new

New messages New topics Systems Serverfiles 3D Models Web Scripting

Metin2Resources

👋 Welcome to Metin2 Resources — your hub for professional Metin2 server development.

Create a free account to access advanced systems, serverfiles, tutorials and connect with other developers.

🚀 Join today and start building better.

How to install MariaDB on Freebsd

RESOURCES HUB

Premium
📜 Messages 276
👍 Reactions 1,640
🏆 Points 425
🌐 Website metin2global.to

1️⃣ Update System​


First, update your package repository:


Code:
pkg update
pkg upgrade -y




2️⃣ Install MariaDB​


Install MariaDB server and client (example with 10.6):


Code:
pkg install mariadb106-server mariadb106-client


If your source requires 10.5, use:


Code:
pkg install mariadb105-server mariadb105-client




3️⃣ Enable MariaDB at Boot​


Make sure MariaDB starts automatically when the server boots:


Code:
sysrc mysql_enable="YES"




4️⃣ Initialize Database (FIRST TIME ONLY)​


Before starting MariaDB for the first time, initialize it:


Code:
mysql_install_db --user=mysql --basedir=/usr/local --datadir=/var/db/mysql




5️⃣ Start MariaDB​


Now start the service:


Code:
service mysql-server start


Check if it's running:


Code:
service mysql-server status




6️⃣ Secure Installation​


Run the security setup:


Code:
mysql_secure_installation


Recommended answers:


  • Switch to unix_socket authentication → No
  • Set root password → Yes
  • Remove anonymous users → Yes
  • Disallow root login remotely → Yes
  • Remove test database → Yes
  • Reload privilege tables → Yes



7️⃣ Test Login​


Try logging in:


Code:
mysql -u root -p


If you enter the MariaDB console, installation was successful 🎉


Exit with:


Code:
exit
 

Latest posts

Back
Top Bottom