What's new

New messages New topics Systems Serverfiles 3D Models Web Scripting

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

RESOURCES HUB

Premium
📅 Joined Jul 22, 2025
💬 Messages 201
👍 Thanks 1,428
🏆 Points 425
📍 Location London
🌐 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

shape1
shape2
shape3
shape4
shape5
shape6
Top