I’m using PhpMyAdmin on XAMPP server. However, after installing WordPress on localhost, it start showing following error.

Solution:-
- Open XAMPP control panel
- Click MySQL > Config > my.ini

Just Add below line under [mysqld] tag
skip-grant-tables

Next restart your xampp then your problem has been solved.
[…] mysqli::real_connect(): (HY000/1130): Host ‘localhost’ is not allowed to connect to this MariaDB… […]
It was very helpfull for me. Thanks