找回密码
 加入
搜索
查看: 2203|回复: 3

[AU3基础] au3 网络通讯端口 【已解决】

[复制链接]
发表于 2010-6-6 19:23:42 | 显示全部楼层 |阅读模式
本帖最后由 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  通讯啊 !~  老师提示连不上啊
发表于 2010-6-6 19:28:19 | 显示全部楼层
127.0.0.1,,用主机名试试
 楼主| 发表于 2010-6-6 19:32:47 | 显示全部楼层
我要连接远程的mysql
本地能正常用啊
 楼主| 发表于 2010-6-6 20:06:32 | 显示全部楼层
再晕 一次啦

远程访问 mysql 服务端  需要 在服务端放行 mysql 端口 3306 TCP
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-6 12:25 , Processed in 0.103523 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表