I have inherited a server that has mysql installed on it. I don\'t have the mysql password for any user, not even root (although I have the linux root password). Plus, I a
For mysql 5.7.16 on Ubuntu 16.04 this worked:
login without password:
sudo mysqld_safe --skip-grant-tables --skip-networking &
change password:
SET PASSWORD FOR 'root'@'localhost' = 'mypass';
Found solution on MySQL 5.7 Reference Manual