I was doing everything without success :( I still get error if I try to change mysql root password
What I have done till now: 1)
service mysql stop
2)
mysqld_safe --skip-grant-tables &
3)
mysql -u root
4)
update user SET PASSWORD=PASSWORD("<my_new_password>") WHERE USER='root'; flush privileges; exit
5)
mysql -u root -p
and...
Im getting whole time:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
My server is ubuntu 16.0.4
Could some tell me please if I reinstall mariaDB I will still have my databases? Right now I can not even do a backup :(