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.

🔐 [TUTORIAL] How to Reset MySQL Root Password (FreeBSD – Metin2 Server)

RESOURCES HUB

Premium
📜 Messages 308
👍 Reactions 2,434
🏆 Points 425
🌐 Website metin2global.to
Below you will find the simplest method to reset your MySQL root password on FreeBSD.


All commands must be executed in SSH (Putty).




1️⃣ Stop MySQL Server​


Code:
/usr/local/etc/rc.d/mysql-server stop




2️⃣ Start MySQL Without Password Check​


Code:
mysqld_safe --skip-grant-tables &


This starts MySQL without checking user privileges.




3️⃣ Connect as Root​


Code:
mysql -u root




4️⃣ Reset Root Password​


Run the following commands one by one:


Code:
use mysql;


Code:
update user set password=PASSWORD("NEW_PASSWORD") where User='root';


Code:
flush privileges;


Code:
quit


⚠ Replace NEW_PASSWORD with your new password.




5️⃣ Stop MySQL Again​


Code:
/usr/local/etc/rc.d/mysql-server stop




6️⃣ Start MySQL Normally​


Code:
/usr/local/etc/rc.d/mysql-server start




7️⃣ Optional – Reboot Server​


Code:
reboot




✅ Done!​


✔ Root password successfully changed
✔ MySQL running normally
✔ You can now login using the new password
 

Latest posts

Back
Top Bottom