KB10002 Forgotten MariaDB root password
KB ID: 10002
Product: vProtect
Version: 3.8.0 +
Published: 2020-02-04
Last modified: 2020-02-04
Problem
User forgot MariaDB root password set in server initialization job, and can't run vProtect database backup.
Solution
Reset root password in MariaDB.
Before that stop vprotect-server
Stop MariaDB service.
Start MariaDB service in unrestricted access.
Now you can login to MariaDB, and reset password.
[root@vProtect01 ~]# mysql -u root
use mysql;
update user set password=PASSWORD("new-password-to-MariaDB") where User='root';
flush privileges;
exit
Restart MariaDB, and run vprotect-server
[root@vProtect01 ~]# systemctl restart mariadb
[root@vProtect01 ~]# systemctl start vprotect-server
Now you can use "new-password-to-MariaDB" to login as root.
[root@vProtect01 ~]# mysql -u root -pnew-password-to-MariaDB
Related articles
Filter by label
There are no items with the selected labels at this time.