# ked nevies stare heslo ale mas roota na stroji:
/etc/init.d/mysql stop usr/sbin/mysqld –skip-grant-tables & mysqladmin -u root flush-privileges password “newpwd” killall mysqld /etc/init.d/mysql start
# ked vies stare (cez SQL):
mysql -u root -p mysql update user set Password = PASSWORD('noveheslo') where user = 'root' and Host = 'localhost'; flush privileges; quit;
# alebo v prikazovom riadku:: mysqladmin -u root -p password 'noveheslo' # mozno potom treba resetnut mysql server /etc/init.d/mysql restart