.Net MySql error “The given key was not present in the dictionary”

后端 未结 7 1362
深忆病人
深忆病人 2021-01-19 01:44

Trying to get simple count from table results in exception bellow. Tried different select statemens which also makes exception: \"SELECT * FROM goods\", but \"<

7条回答
  •  抹茶落季
    2021-01-19 02:44

    in my case i use MySQL Connector NET 6.3.0 and the solution that i got is to change connection string key
    from

    Server=127.0.0.1;Uid=root;Pwd=xxxx;Database=dbname;CharSet=utf8
    


    to this

    server=127.0.0.1;user id=root;password=xxxx;database=dbname;charset=utf8;pooling=false
    

提交回复
热议问题