Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 1130 in mysql

when i am trying to log on mysql using my ip address i am getting error 1130 qht can i do for this

like image 306
ratty Avatar asked May 18 '10 13:05

ratty


People also ask

How do I fix MySQL error 1130?

From the output of the command, the user is only allowed to connect to the database server from the localhost. So, we need to update the user's hosts as follows. To give a user remote access from all host on a network, use the syntax below: MariaDB [(none)]> GRANT ALL ON database_name.

Is not allowed to connect to this MySQL server 1130?

SQLSTATE[HY000] [1130] Host '172.19. 0.11' is not allowed to connect to this MySQL server error occurs when the connection request is rejected by the MySQL server. By default, the MySQL server only accepts connections from local hosts and not from other hosts.


1 Answers

On your server run mysql from command line:

mysql -u root -p -h localhost -P 3306

Then run this command in mysql shell:

>use mysql
>GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'yourpassword';
>FLUSH PRIVILEGES;

Have a nice time.

like image 95
Saeed Zarinfam Avatar answered Oct 03 '22 04:10

Saeed Zarinfam