To resolve the error 1130: Host not allowed to connect in MySQL, follow these steps:
- Use `ipconfig` (Windows) or `ifconfig`/`ip addr` (Linux/Mac) to find your IP address.
- If you have access, log in to the MySQL server from the command line using `mysql -u root -p`.
- Execute the following SQL query, replacing `'yourip'` with your actual IP address and `'yourpassword'` with your desired password:GRANT ALL PRIVILEGES ON
.
TO 'root'@'your
ip' IDENTIFIED BY 'your
password' WITH GRANT OPTION;
- Run `FLUSH PRIVILEGES;` in the MySQL prompt to apply the changes.
- Try connecting again from your machine using the MySQL client to see if the error is resolved.
This is a direct action plan that assumes you have the necessary privileges to modify user access on the MySQL server.
Let Dr. Droid create custom investigation plans for your infrastructure.
Book Demo