Recovering MySQL root password (XAMPP)
This resetroot.bat method did not work for me, even after following the instructions above.

My XAMPP uses this DB version:


Server: MariaDB
Server version: 10.0.17-MariaDB mariadb.org binary distribution


However, using this answer, I was able to do it manually.


Go to your **xampp\mysql\bin** folder 
Edit my.ini and insert skip-grant-tables below [mysqld]
Restart MySQL 
Set new password for your root user by running UPDATE mysql.user SET
Password=PASSWORD('new_password') WHERE User='root' in phpMyAdmin in
the mysql database (or just leave it like this if MySQL cannot be
accessed from remote hosts)
Remove the skip-grant-tables in the my.ini file