A dotnet 6 wrapper around the MySQL C library libmysql.dll
, libmysqlclient.dylib
or libmysqlclient.so
MySQL Server 5.7+
Install MySQL client library first. MySqlSharp doesn't include any binaries.
MySqlSharp wrapps the C APIs from libmysqlclient
. All APIs are almost the same as the original C API.
See tests/MySqlClientTests.cs for usage examples.
NOTE if you're using MySQL 5.7, you'll have to use the *OLD structs for data marshaling.