I am trying to reset the root password for a mariadb database, followed every variation of tutorial to do so I've found so far, and every time I try to log in with the new password, it does not accept it.
Mainly, this is what I've been doing:
mysqld_safe --skip-grant-tables --skip-networking &
mysql -u root -e 'use mysql; update user SET PASSWORD=PASSWORD("jkjkjkjjk"); flush privileges;'
I also tried adding an additional flush privileges;
before the udpate
command, removing it from the end as well, different variations for reset password, such as SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');
I am using mariadb with galera, running on kubernetes statefulset, if relevant.
version of mariadb is mysqld 10.3.21-MariaDB-1:10.3.21+maria~bionic
I am incredibly frustrated about this.