Debian – reset root hesla pro mysql databázi

Postup:

/etc/init.d/mysql stop

mysqld –skip-grant-tables &

mysql -u root mysql

UPDATE user SET Password=PASSWORD(‘NovéHeslo’) WHERE User=’root’; FLUSH PRIVILEGES; exit;