Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用LAN将客户端连接到服务器数据库mysql_Mysql_Vb.net - Fatal编程技术网

如何使用LAN将客户端连接到服务器数据库mysql

如何使用LAN将客户端连接到服务器数据库mysql,mysql,vb.net,Mysql,Vb.net,如何使用LAN将客户端连接到mysql服务器数据库 Try con.ConnectionString = "Database=825records;server=localhost;user id=root;password=" con.Open() Catch ex As Exception 您可以编写服务器IP地址,或者甚至可以尝试使用服务器计算机名,而不是“localhost”,因为它们位于LAN中。 Try con.Co

如何使用LAN将客户端连接到mysql服务器数据库

    Try
        con.ConnectionString = "Database=825records;server=localhost;user id=root;password="
        con.Open()
    Catch ex As Exception

您可以编写服务器IP地址,或者甚至可以尝试使用服务器计算机名,而不是“localhost”,因为它们位于LAN中。
 Try
        con.ConnectionString = "Database=825records;server=serveripaddress;user id=root;password="
        con.Open()
    Catch ex As Exception