service mysql stop
mysqld_safe --skip-grant-tables &
mysql -u root
USE mysql
UPDATE user SET Password = PASSWORD('password1234')
WHERE Host = '%' AND User = 'root';
FLUSH PRIVILEGES; service mysql start Then log in with root like this: mysql -p and write the password
DB list via SQL: show databases; Delete a database via SQL: drop ; Create database via SQL: create database ;