This would work in vb.net 4.6:
Dim da as New MySqlDataAdapter(New MysqlCommand("","server=MyServerAddress;uid=MyUser;pwd=MyPW;database=MyInitialCatalog"))
da.Fill(MyDataSet.MyTable)
In NET 6 I get an error. I don't know anything to do with it:
'Windows-1252' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. Arg_ParamName_Name
I don't know where to encode what. I have never seen this error, probably because I don't know a lot about DataBase Connections
I don't specify an 'encoding name' anywhere. Can you help me with what I need to do here?
EDIT: I could find the same error occurs at
Dim test = New MySqlConnection("server=MyServerAddress;uid=MyUser;pwd=MyPW;database=MyInitialCatalog")
test.Open