Steps
- Open command line with administrator permission
- Stop mysql service (2 ways)
- net stop mysql
- administrator tools -> services
- Create a mysql_init.txt file with this command line:
ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘new password’; - cd C:\Program Files\MariaDB 10.3\bin
- mysqld –init-file=C:\\mysql-init.txt
- Done, password of root has been reset
Reference: