gpt4 book ai didi

mysql - 为什么我得到 "Host ' 192.168.1.22 0' is not allowed to connect to this MySQL server"?

转载 作者:行者123 更新时间:2023-11-29 03:49:38 25 4
gpt4 key购买 nike

<分区>

我需要在 LAN 上运行 MySQL (phpMyAdmin)。这是我的连接字符串:

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

我得到一个错误:

Host '192.168.1.220' is not allowed to connect to this MySQL server

我有两台电脑。其中之一(Windows 7 - 192.168.1.101)使用上述连接字符串运行 WAMP 服务器(phpMyAdmin)和 VB.NET 应用程序。现在我想在第二台电脑 (Windows) 上使用 192.168.1.101 中的相同数据库运行该应用程序。我已经在两台 PC 上定义了固定 IP 并禁用了防火墙。怎么回事?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com