try to connect mysql database outside local internet, i got
msg show up :
Host '19.108.95.17' ins not allowed to connect to this mariaDB server
19.108.95.17 = not my currently public ip, but it old one before renew ip
let me say my currently ip : 15.100.80.30 (public ip)
my code :
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
MysqlConn = New MySqlConnection
MysqlConn.ConnectionString =
"server=15.100.80.30;port=3306;userid=root;password=password;database=mydatabasee"
Try
MysqlConn.Open()
MessageBox.Show("Connection Successful")
MysqlConn.Close()
Catch ex As MySqlException
MessageBox.Show(ex.Message)
Finally
MysqlConn.Dispose()
End Try
End Sub