本帖最后由 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 通讯啊 !~ 老师提示连不上啊 |