Dim conn As MysqlConnection
//closure
var pushBehavior: UIPushBehavior = {
let lazilyCreatedPush = UIPushBehavior()
lazilyCreatedPush.setAngle(50, magnitude: 50)
return lazilyCreatedPush
}()
此代码不起作用?如何在线连接phpmyadmin数据库使用vb.net?
答案 0 :(得分:0)
你试过安装这个吗?
http://dev.mysql.com/downloads/connector/net/
安装完成后,尝试重新配置代码,试试这个。
Imports MySql.Data.MySqlClient
Dim Connection As MySqlConnection = New MySqlConnection()
Dim ConnectionString As String = "Server=SERVERNAME or the Database online link;Database=DATABASE;Uid=root;Pwd=password;"
Connection.ConnectionString = ConnectionString
Connection.Open()
//Execute here what ever you want just follow your heart <3
myConnection.Close()