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

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

[复制链接]
发表于 2010-6-6 19:23:42 | 显示全部楼层 |阅读模式
本帖最后由 haodd 于 2010-11-12 23:25 编辑

au3 怎么操作 通讯端口
  1. #include "mysql.au3"
  2. _MySQL_InitLibrary()
  3. $MysqlConn = _MySQL_Init()
  4. $connected = _MySQL_Real_Connect($MysqlConn, "127.0.0.1", "root", "asdf1234", "information_schema")
  5. If $connected = 0 Then Exit MsgBox(16, 'Connection Error', _MySQL_Error($MysqlConn))
  6. $query = "SELECT * FROM CHARACTER_SETS"
  7. _MySQL_Real_Query($MysqlConn, $query)
  8. $res = _MySQL_Store_Result($MysqlConn)
  9. $fields = _MySQL_Num_Fields($res)
  10. $rows = _MySQL_Num_Rows($res)
  11. MsgBox(0, "data","row:"&$rows & "-" & $fields&"ok")
  12. ;/************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, 2026-9-22 13:26 , Processed in 0.062257 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2026 Discuz! Team.

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