Cum sa resetezi parola de la MySQL root in freebsd Metin2
Metoda unu:
1.Se pune in /etc/rc.conf:
mysql_enable=”YES”
mysql_args=”–skip-grant-tables –skip-networking”
2 .Apoi:
/usr/local/etc/rc.d/mysql-server restart
3 .Apoi:
mysql
UPDATE user SET Password=PASSWORD(‘metin’) WHERE USER=’root’;
FLUSH PRIVILEGES;
4.Apoi se scoate din /etc/rc.conf linia:
mysql_args=”–skip-grant-tables –skip-networking”
Si se da restart!
Metoda doi:
1. Va autentificati in pe root si dati urmatoarele comenzi:
mysql -u root mysql
UPDATE user SET Password=PASSWORD(‘Parola Noua’) WHERE USER=’root’;
FLUSH PRIVILEGES;
exit;
/usr/local/etc/rc.d/mysql-server restart
Apoi parola dvs de root va fi resetata.