查看: 1117|回复: 3
|
Can't connect to MySQL server on '123.123.123.1' (10060)
[复制链接]
|
|
大家好﹐我有一個server B,windows 2003,IIS 6, 是一個database driven網頁﹐ 當我嘗試connect to a MYSQL server that IP address 123.123.123.1, i i got this error messages:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '123.123.123.1' (10060)
/wss1/db.asp, line 12
我check過MYSQL server's IP address﹐ 我放的就是MYSQL的IP ADDRESS﹐應該沒錯﹐以下是我的db.asp's coding.
<%
dim conn
set conn=server.CreateObject("ADODB.CONNECTION")
dim ConnectionString
ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "option=16387;"& "SERVER=123.123.123.1;" & "uid=uid;" & "password=password;"_
& "DATABASE=woodland;"
conn.Open ConnectionString
%>
有誰能告訴我嗎﹖謝謝 |
|
|
|
|
|
|
|
发表于 20-4-2006 11:27 AM
|
显示全部楼层
MySQL 有两种user 设定,一个是user@localhost,一个是user@%,
确定你有user@%,那你才能用别的IP进 |
|
|
|
|
|
|
|
楼主 |
发表于 20-4-2006 11:56 AM
|
显示全部楼层
原帖由 WuSheng 于 20-4-2006 11:27 AM 发表
MySQL 有两种user 设定,一个是user@localhost,一个是user@%,
确定你有user@%,那你才能用别的IP进
去那裡做這些setting? |
|
|
|
|
|
|
|
发表于 21-4-2006 08:06 AM
|
显示全部楼层
原帖由 山無菱 于 20-4-2006 11:56 AM 发表
去那裡做這些setting?
如果你是用MYSQL..
打开 (MYSQL\Bin) winmysqladmin -> my.ini Setup 里头setting就行了. |
|
|
|
|
|
|
| |
本周最热论坛帖子
|