Cum se schimbă parola utilizatorului pe mysql Mysql
Schimbă parola utilizatorului utilizând următoarea metodă:
-
Deschideți shell-ul bash și conectați-vă la server ca utilizator root:
mysql -u root -h localhost -p -
Rulați comanda DUPA mysql:
ALTER USER 'userName'@'localhost' IDENTIFIED BY 'New-Password-Here'; -
În cele din urmă tastați comanda SQL pentru a reîncărca tabelele de grant din baza de date mysql:
FLUSH PRIVILEGES;