This question already has an answer here:
- Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server 24 answers
I need to run MySQL (phpMyAdmin) on a LAN. This is my connection string:
Function Connection() As MySqlConnection
'Connect Database
MyConnection.ConnectionString = "server=192.168.1.101;" _
& "user id=root;" _
& "password=;" _
& "database=db1230018;"
'
MyConnection.Open()
Return MyConnection
End Function
I get an error:
Host '192.168.1.220' is not allowed to connect to this MySQL server
I have two PCs. One of them (Windows 7 - 192.168.1.101) runs a WAMP server (phpMyAdmin) and a VB.NET application using the above connection string. Now I want to run the application on the second pc (Windows) using the same database in 192.168.1.101. I already define a fixed IP on both PCs and disable firewalls. What's going on?