来自客户端的MYSQL连接 [英] MYSQL CONNECTION FROM CLIENT

查看:73
本文介绍了来自客户端的MYSQL连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我的服务器机房安装了mysql。我有一个vb.net应用程序,可以连接到mysql中的数据库。



问题是当mysql和vb在同一台计算机上时它是有效的



在不同计算机上的同一网络中都有错误



无法连接到任何指定的MYSQL主机





如何解决此问题并使用vb.net应用程序连接到服务器计算机

sir we have server computer in my server room with mysql installed. i have a vb.net application which can connect to database in mysql.

the problem is it works when mysql and vb are on same computers

In same network both on different computers there's a error

"unable to connect to any of the specified MYSQL hosts"


how to resolve this problem and connect to server computer with vb.net application

推荐答案

默认情况下,mysql只是监听localhost,这可能是其中一个原因,另一个原因可能是该数据库的用户帐户的权限未被授予远程访问权限,请参考:

http://www.razorsql.com/docs/support_mysql_local.html [ ^ ]
By default, mysql is only listen to localhost, that could be one of the reason, another reason could be the privilege of the user account for that database is not granted remote access, refer:
http://www.razorsql.com/docs/support_mysql_local.html[^]


这篇关于来自客户端的MYSQL连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆