提问人:Cedric Oruga 提问时间:6/13/2023 最后编辑:Hans KestingCedric Oruga 更新时间:6/13/2023 访问量:71
Vb.net 找不到 Visual Studio 2022 关键字“address”
Vb.net Visual Studio 2022 keyword 'address' not found
问:
请有人指导我在哪里可以识别错误正在与之通信的地址。每当我运行项目时,在连接数据库后。出现以下错误:
Private Sub Main_Menu_Load(sender As Object, e As EventArgs) Handles MyBase.Load
conn = New MySqlConnection
conn.ConnectionString = "server=(LocalDb)\cedriclocaldb;username=cedricoruga;password=123456;database=consignmentdatabase"
Try
conn.Open()
sql = "select * from consignment_tbl_ced"
command.Connection = conn
command.CommandText = sql
myadapter.SelectCommand = command
myadapter.Fill(mydata)
DataGridView1.DataSource = mydata
conn.Close()
MessageBox.Show("Connection to database is successful!", "Testing Connection to MySQL Database")
conn.Close()
Catch ex As Exception
MsgBox("Error:" & Err.Description)
Finally
conn.Dispose()
End Try
End Sub
答: 暂无答案
评论
Uid
Pwd
conn
Using conn As MySqlConnection = New MySqlConnection
Catch
Catch