HTTP/1.1 200 OK Server: Microsoft-IIS/5.1 Date: Sun, 11 Jun 2006 00:59:27 GMT Connection: close Content-Length: 65 Content-Type: text/html Cache-control: private
HTTP/1.1 401 錯(cuò)誤: 拒絕訪問(wèn)。
程序源文件:
<%
dim SqlLocalName,SqlUsername,SqlPassword,SqlDatabaseName,Conn,ConnStr,db,Err_OpenDatabase
SqlLocalName ="(local)" '連接IP [ 本地用 (local) 外地用IP ]
SqlUsername ="sa" '用戶(hù)名
SqlPassword ="zhengque" '用戶(hù)密碼
SqlDatabaseName="vnut" '數(shù)據(jù)庫(kù)名
Set conn = Server.CreateObject("ADODB.Connection")
connstr = "Provider=Sqloledb; User ID=" & SqlUsername & "; Password=" & SqlPassword & "; Initial Catalog = " & SqlDatabaseName & "; Data Source=" & SqlLocalName & ";"
conn.Open connstr
sub CloseConn()
On Error Resume Next
Conn.close
set Conn=nothing
end sub
%>
原因是:
要不就是
你的sa密碼不對(duì)
要不就是你的mysql沒(méi)啟動(dòng)
聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com