请帮助我
在我的服务器中,它写为 Server: Localhost via UNIX socket
我的域名是“datadarshan.com”
我的 vb6.0 代码是
serverip = "datadarshan.com"
port = "3306"
datebasename = "XXXXX"
user = "XXXXX"
password = "XXXXX"
table_name = "adminLoginDB"
'Creating a new connection, and defineing the variables
Set CNN = New Connection
CNN.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=" & serverip & ";" _
& " DATABASE=" & datebasename & ";" _
& " PORT=" & port & ";" _
& "UID=" & user & ";PWD=" & password & "; OPTION=3"
CNN.Open 'Opening the database
我收到错误.....所以我必须在服务器 ip 中写什么,即使我也尝试了“localhost”,但仍然收到连接错误。
感谢广告,Chirag Shah。