Filling a DataTable in C# using MySQL

前端 未结 5 1808
陌清茗
陌清茗 2021-01-07 14:33

I\'m attempting to fill a DataTable with results pulled from a MySQL database, however the DataTable, although it is initialised, doesn\'t populate. I wanted to use this Dat

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-07 15:02

    Your connection string is invalid.

    Set it as follows:

    connection = "Server=myServer;Database=myDataBase;Uid=myUser;Pwd=myPassword;";
    

    Refer: mysql connection strings

提交回复
热议问题