XAMPP is a popular open-source software package that allows developers to set up a local web server environment for testing and developing web applications. One of the components included in XAMPP is MariaDB, a widely used open-source relational database management system.
However, when working with MariaDB in XAMPP, you may encounter the error message, "Host is not allowed to connect to this MariaDB server." In this article, we will explore the causes of this error and provide solutions to resolve it.
Error:
Possible Causes of the "Host is not allowed to connect to this MariaDB server" Error:
Access Privileges:
Host Restrictions:
Firewall or Port Blocking:
Incorrect Configuration:
MariaDB Service Status:
It's due to crash of User table in MySQL database. The solution is simple. Just follow below step.
Add below line under [mysqld] tag
skip-grant-tables
Check the below image.
Save my.ini
Restart MySQL server by pressing STOP and START button.
Encountering the "Host is not allowed to connect to this MariaDB server" error in XAMPP can be frustrating, but it is usually caused by issues related to access privileges, host restrictions, firewall settings, or configuration mismatches.
By following the solutions outlined in this article, you can troubleshoot and resolve this error, ensuring smooth communication between your applications and the MariaDB server within your XAMPP environment
You might also like: