C# with MySQL - Error: “Guid should contain 32 digits with 4 dashes” when trying to open the connection

后端 未结 1 2000
花落未央
花落未央 2021-01-28 20:48

Im developed a software and it\'s now time to test it connection to a online server. Im developing in C# using Visual Studio and I\'m trying to connect to a MySQL server. To be

1条回答
  •  情歌与酒
    2021-01-28 21:09

    Your crash is coming from Driver.LoadCharacterSets, which is executing SHOW COLLATION. This is bug 92982 that has been reported against the Connector/NET driver.

    According to the OP on that case, he fixed the problem by disabling the skip-character-set-client-handshake setting in his my.cnf for MySQL Server. If you also have that setting, try disabling it to see if it resolves the problem.

    Otherwise, you could switch to MySqlConnector, an alternate ADO.NET library for MySQL, which doesn't have this bug.

    0 讨论(0)
提交回复
热议问题