MySQL ERROR 1130 (HY000): Host 'x' is not allowed to connect to this MySQL server
No MySQL account exists for the host you’re connecting from.
is not allowed to connect to this MySQL server Meaning
Accounts are user@host. A user created as 'app'@'localhost' can’t log in from another machine or container. Remote access needs a matching host ('app'@'%' or a specific IP).
Common causes
- User only defined for localhost
- Connecting from a container/another server
- bind-address limits plus missing remote user
⚡ Quick fix
- Create the user for the client host or a subnet
- Grant privileges
- Check bind-address in my.cnf for remote access
Detailed fix by platform
MySQL
- sql
CREATE USER 'app'@'10.0.0.%' IDENTIFIED BY 'StrongPass!'; GRANT ALL ON appdb.* TO 'app'@'10.0.0.%';
How to diagnose
- Host — Which host is reported?
- Accounts — SELECT user, host FROM mysql.user
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in MySQL
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026