我收到错误:
BC30807: 'Let' and 'Set' assignment statements are no longer supported.
使用:
Set objConn = Server.CreateObject("ADODB.Connection")
答案 0 :(得分:0)
像这样:
using MySql.Data.MySqlClient;
MySqlConnection myConnection = new MySqlConnection();
myConnection.ConnectionString = myConnectionString;
myConnection.Open();
//execute queries, etc
myConnection.Close();
myConnectionString
的格式如下:
"Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;"