请帮忙,我的 vb.net 代码在 MySQL 数据库中插入值有什么问题
Dim conn As New MySqlConnection(ConfigurationManager.ConnectionStrings("ibdm").ConnectionString)
Dim cmd1 As New MySqlCommand("INSERT INTO configs(configType, portsStatus, bandwidthLimit, ports, user) values(@config, @manage, @limit, @ports, @user)", conn)
Try
conn.Open()
cmd1.ExecuteNonQuery()
iReturn = True
Catch ex As MySqlException
MsgBox(ex.Message.ToString)
iReturn = False
Finally
conn.Close()
End Try