{"id":14969038,"url":"https://github.com/mysql-net/mysqlconnector","last_synced_at":"2026-06-03T01:00:49.728Z","repository":{"id":37382171,"uuid":"55185530","full_name":"mysql-net/MySqlConnector","owner":"mysql-net","description":"MySQL Connector for .NET","archived":false,"fork":false,"pushed_at":"2026-05-25T18:36:38.000Z","size":8148,"stargazers_count":1495,"open_issues_count":99,"forks_count":354,"subscribers_count":65,"default_branch":"master","last_synced_at":"2026-05-25T20:15:31.041Z","etag":null,"topics":["ado-net","async","dotnet","dotnet-core","hacktoberfest","mariadb","mysql","mysql-connector"],"latest_commit_sha":null,"homepage":"https://mysqlconnector.net","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mysql-net.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-03-31T21:54:37.000Z","updated_at":"2026-05-13T05:29:08.000Z","dependencies_parsed_at":"2024-01-12T02:36:44.565Z","dependency_job_id":"afa62142-64e6-4929-b4dc-4da7150d03be","html_url":"https://github.com/mysql-net/MySqlConnector","commit_stats":{"total_commits":2601,"total_committers":81,"mean_commits":"32.111111111111114","dds":0.09919261822376013,"last_synced_commit":"788107c70aaf22513afdb0835efe37ee512ca868"},"previous_names":[],"tags_count":228,"template":false,"template_full_name":null,"purl":"pkg:github/mysql-net/MySqlConnector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysql-net","download_url":"https://codeload.github.com/mysql-net/MySqlConnector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysql-net%2FMySqlConnector/sbom","scorecard":{"id":671305,"data":{"date":"2025-08-11","repo":{"name":"github.com/mysql-net/MySqlConnector","commit":"1834cfd3982f6f672d3c5a4045a358c5a08d62c3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.3,"checks":[{"name":"Code-Review","score":1,"reason":"Found 3/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci.yml:12","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:16","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:17","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"11 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/mysql-net/MySqlConnector/codeql-analysis.yml/master?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:2","Warn: nugetCommand not pinned by hash: .github/workflows/ci.yml:23: pin your dependecies by either enabling central package management (https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management) or using a lockfile (https://learn.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies)","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 nugetCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 14 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T20:09:44.031Z","repository_id":37382171,"created_at":"2025-08-21T20:09:44.031Z","updated_at":"2025-08-21T20:09:44.031Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33843611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ado-net","async","dotnet","dotnet-core","hacktoberfest","mariadb","mysql","mysql-connector"],"created_at":"2024-09-24T13:41:01.257Z","updated_at":"2026-06-03T01:00:49.723Z","avatar_url":"https://github.com/mysql-net.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MySQL Connector for .NET and .NET Core\n\n[![NuGet](https://img.shields.io/nuget/vpre/MySqlConnector.svg)](https://www.nuget.org/packages/MySqlConnector/)\n\nThis is an [ADO.NET](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/) data\nprovider for [MySQL](https://www.mysql.com/) and other compatible servers including [MariaDB](https://www.mariadb.org).\nIt provides implementations of\n`DbConnection`, `DbCommand`, `DbDataReader`, `DbTransaction`—the classes\nneeded to query and update databases from managed code.\n\nComplete documentation is available at the [MySqlConnector Documentation Website](https://mysqlconnector.net/).\n\n## Why Use This Library?\n\n### Performance\n\nThis library outperforms MySQL Connector/NET (`MySql.Data`) on benchmarks:\n\n![Benchmark](https://files.logoscdn.com/v1/assets/15435916/optimized)\n\n(Client: MySqlConnector 2.3.1, MySql.Data 8.2.0, Ubuntu 23.04, .NET 8.0; Server: Azure Database for MySQL 8.0.34, TLS 1.2)\n\n### Server Compatibility\n\nThis library is compatible with [many MySQL-compatible servers](https://mysqlconnector.net/#server-compatibility), including MySQL 5.5 and newer and MariaDB 10.x and newer.\nMySql.Data [only supports MySQL Server](https://bugs.mysql.com/bug.php?id=109331).\n\n### Bug Fixes\n\nThis library [fixes dozens of outstanding bugs](https://mysqlconnector.net/tutorials/migrating-from-connector-net/#fixed-bugs) in Connector/NET.\n\n### Cutting Edge\n\nThis library implements the latest ADO.NET APIs, from async (introduced in .NET Framework 4.5), through `DbBatch` (.NET 6.0) and `DbDataSource` (.NET 7.0).\n\n### License\n\nThis library is [MIT-licensed](LICENSE) and may be freely distributed with commercial software.\nCommercial software that uses Connector/NET may have to purchase a [commercial license](https://www.mysql.com/about/legal/licensing/oem/)\nfrom Oracle.\n\n## Related Projects\n\nThis library is compatible with popular .NET ORMs including:\n\n* [Dapper](https://dapperlib.github.io/Dapper/) ([GitHub](https://github.com/DapperLib/Dapper), [NuGet](https://www.nuget.org/packages/Dapper))\n* [FreeSql](https://freesql.net/) ([GitHub](https://github.com/dotnetcore/FreeSql), [NuGet](https://www.nuget.org/packages/FreeSql.Provider.MySqlConnector/))\n* [Gedaq](https://github.com/SoftStoneDevelop/Gedaq) ([GitHub](https://github.com/SoftStoneDevelop/Gedaq.MySqlConnector), [NuGet](https://www.nuget.org/packages/Gedaq/))\n* [LINQ to DB](https://linq2db.github.io/) ([GitHub](https://github.com/linq2db/linq2db), [NuGet](https://www.nuget.org/packages/linq2db.MySql/)) including ClickHouse support\n* [MuchAdo](https://muchado.net/) ([GitHub](https://github.com/MuchAdoNet/MuchAdo), [NuGet](https://www.nuget.org/profiles/MuchAdo))\n* [NHibernate](https://nhibernate.info/) ([GitHub](https://github.com/nhibernate/NHibernate.MySqlConnector), [NuGet](https://www.nuget.org/packages/NHibernate.Driver.MySqlConnector))\n* [NReco.Data](https://www.nrecosite.com/dalc_net.aspx) ([GitHub](https://github.com/nreco/data), [NuGet](https://www.nuget.org/packages/NReco.Data))\n* [SimpleStack.Orm](https://simplestack.org/) ([GitHub](https://github.com/SimpleStack/simplestack.orm), [NuGet](https://www.nuget.org/packages/SimpleStack.Orm.MySQLConnector))\n\nFor Entity Framework support, use:\n\n* Pomelo.EntityFrameworkCore.MySql ([GitHub](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql), [NuGet](https://www.nuget.org/packages/Pomelo.EntityFrameworkCore.MySql))\n\nFor ASP.NET Core health checks, use:\n\n* AspNetCore.HealthChecks.MySql ([GitHub](https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks), [NuGet](https://www.nuget.org/packages/AspNetCore.HealthChecks.MySql))\n\n## Build Status\n\n[![AppVeyor](https://img.shields.io/appveyor/ci/mysqlnet/mysqlconnector/master.svg)](https://ci.appveyor.com/project/mysqlnet/mysqlconnector)\n[![Azure Pipelines](https://dev.azure.com/mysqlnet/MySqlConnector/_apis/build/status/mysql-net.MySqlConnector?branchName=master)](https://dev.azure.com/mysqlnet/MySqlConnector/_build/latest?definitionId=2\u0026branchName=master)\n\n## Building\n\nInstall the latest [.NET](https://dotnet.microsoft.com/en-us/download).\n\nTo build and run the tests, clone the repo and execute:\n\n```\ndotnet restore\ndotnet test tests\\MySqlConnector.Tests\n```\n\nTo run the integration tests, see [the instructions](tests/README.md).\n\n## Goals\n\nThe goals of this project are:\n\n1. **.NET Standard support:** It must run on the full .NET Framework and all platforms supported by .NET Core.\n2. **Async:** All operations must be truly asynchronous whenever possible.\n3. **High performance:** Avoid unnecessary allocations and copies when reading data.\n4. **Lightweight:** Only the core of ADO.NET is implemented, not EF or Designer types.\n5. **Managed:** Managed code only, no native code.\n6. **Independent:** This is a clean-room reimplementation of the [MySQL Protocol](https://dev.mysql.com/doc/internals/en/client-server-protocol.html), not based on Connector/NET.\n\nCloning the full API of Connector/NET is not a goal of this project, although\nit will try not to be gratuitously incompatible. For typical scenarios, [migrating to this package](https://mysqlconnector.net/tutorials/migrating-from-connector-net/) should\nbe easy.\n\n## License\n\nThis library is licensed under the [MIT License](LICENSE).\n\n## Contributing\n\nIf you'd like to contribute to MySqlConnector, please read our [contributing guidelines](.github/CONTRIBUTING.md).\n\n## Acknowledgements\n\nDevelopment of MySqlConnector is supported by:\n\n[![Devolutions](https://webdevolutions.blob.core.windows.net/images/projects/devolutions/logos/devolutions-icon-shadow.svg)](https://devolutions.net/)\n\n[Devolutions](https://devolutions.net/)\n\n[![Faithlife](https://files.logoscdn.com/v1/files/4319104/content.svg?signature=3szVb3XmOfYMAxIv-LmuNYL_290)](https://faithlife.com/about)\n\n[Faithlife](https://faithlife.com/about) ([View jobs](https://faithlife.com/careers))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysql-net%2Fmysqlconnector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysql-net%2Fmysqlconnector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysql-net%2Fmysqlconnector/lists"}