MySQL
in mysqld.cnf in der Section [mysqld] hinzufügen:
skip-grant-tables
Anschließend MySQL Restart.
mysql -u root
sollte dann ohne Passwortabfrage funktionieren.