SQLSTATE [HY000] [1130] Host ‘localhost’ is not allowed to connect to this MariaDB server

I’m using windows 11 and  PhpMyAdmin on the XAMPP server. Once while working, the MySQL server  and PHPMyAdmin stop working with this error: Solution: It’s due to…