au3 网络通讯端口 【已解决】
本帖最后由 haodd 于 2010-11-12 23:25 编辑au3 怎么操作 通讯端口#include "mysql.au3"
_MySQL_InitLibrary()
$MysqlConn = _MySQL_Init()
$connected = _MySQL_Real_Connect($MysqlConn, "127.0.0.1", "root", "asdf1234", "information_schema")
If $connected = 0 Then Exit MsgBox(16, 'Connection Error', _MySQL_Error($MysqlConn))
$query = "SELECT * FROM CHARACTER_SETS"
_MySQL_Real_Query($MysqlConn, $query)
$res = _MySQL_Store_Result($MysqlConn)
$fields = _MySQL_Num_Fields($res)
$rows = _MySQL_Num_Rows($res)
MsgBox(0, "data","row:"&$rows & "-" & $fields&"ok")
;/************MySQL如果是远程机器怎么 设定跟mysql通讯啊 !~老师提示连不上啊 127.0.0.1,,用主机名试试 我要连接远程的mysql
本地能正常用啊 再晕 一次啦
远程访问 mysql 服务端需要 在服务端放行 mysql 端口 3306 TCP
页:
[1]