MySQL setzen Root -Passwort
use mysql;
update user set authentication_string=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
Outstanding Otter
use mysql;
update user set authentication_string=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
ALTER USER 'root'@'localhost' IDENTIFIED BY 'PASSWORD';
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';
$ sudo apt install mysql-server
$ sudo cat /etc/mysql/debian.cnf
sudo mysql -- It does not ask me for any password
-- Then in MariaDB/MySQL console:
update mysql.user set plugin = 'mysql_native_password' where User='root';
FLUSH PRIVILEGES;
exit;