0
我想從我的ASP VB應用程序連接到MySql服務器。連接到MySql的問題
我用的連接字符串是:
Driver=org.gjt.mm.mysql.Driver;Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
我用來連接的代碼:
public sub sqlCommand(objCommand, strSqlCommand)
'run query using the command object
set objCommand = server.createobject("ADODB.Command")
response.Write(application("database_connectionstring_external"))
objCommand.ActiveConnection = application("database_connectionstring_external")
objCommand.CommandText = strSqlCommand
objCommand.CommandType = adCmdText
end sub
我得到錯誤 '80004005'
是什麼代碼問題?謝謝
手動連接時工作正常。 – Anuya