Skip to content

Commit 9db104f

Browse files
committed
Update MySQL versions to 9.4.0.
1 parent 6d19d7f commit 9db104f

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
tfm: [ 'net8.0', 'net9.0' ]
3636
services:
3737
mysql:
38-
image: mysql:9.3
38+
image: mysql:9.4
3939
env:
4040
MYSQL_DATABASE: testdb
4141
MYSQL_ROOT_PASSWORD: pass

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
1818
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
1919
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
20-
<PackageVersion Include="MySql.Data" Version="9.3.0" />
20+
<PackageVersion Include="MySql.Data" Version="9.4.0" />
2121
<PackageVersion Include="NLog" Version="4.7.15" />
2222
<PackageVersion Include="Serilog" Version="2.12.0" />
2323
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="8.0.1" />

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ jobs:
176176
image: 'mysql:8.4'
177177
connectionStringExtra: 'AllowPublicKeyRetrieval=True'
178178
unsupportedFeatures: 'Ed25519,ParsecAuthentication,Redirection,StreamingResults,Tls11,TlsFingerprintValidation,Vector,ZeroDateTime'
179-
'MySQL 9.3':
180-
image: 'mysql:9.3'
179+
'MySQL 9.4':
180+
image: 'mysql:9.4'
181181
connectionStringExtra: 'AllowPublicKeyRetrieval=True'
182182
unsupportedFeatures: 'Ed25519,ParsecAuthentication,Redirection,StreamingResults,Tls11,TlsFingerprintValidation,Vector,ZeroDateTime'
183183
'MariaDB 10.6':

docs/content/home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Amazon Aurora RDS | 2.x, 3.x | Use `Pipelining=False` [for Aurora 2.x](https://m
6565
Azure Database for MySQL | 5.7, 8.0 | Single Server and Flexible Server
6666
Google Cloud SQL for MySQL | 5.6, 5.7, 8.0 |
6767
MariaDB | 10.x (**10.6**, **10.11**), 11.x (**11.4**, **11.8**) |
68-
MySQL | 5.5, 5.6, 5.7, 8.x (**8.0**, **8.4**), 9.x (**9.3**) | 5.5 is EOL and has some [compatibility issues](https://github.com/mysql-net/MySqlConnector/issues/1192); 5.6 and 5.7 are EOL
68+
MySQL | 5.5, 5.6, 5.7, 8.x (**8.0**, **8.4**), 9.x (**9.4**) | 5.5 is EOL and has some [compatibility issues](https://github.com/mysql-net/MySqlConnector/issues/1192); 5.6 and 5.7 are EOL
6969
Percona Server | 5.6, 5.7, 8.0 |
7070
PlanetScale | | See PlanetScale [MySQL compatibility notes](https://planetscale.com/docs/reference/mysql-compatibility)
7171
ProxySQL | 2.x | Some [compatibility issues](https://github.com/search?q=repo%3Amysql-net%2FMySqlConnector+proxysql&type=issues)

docs/content/tutorials/migrating-from-connector-net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In a .NET Framework application, make the following `app.config` change to regis
4141
<!-- add name="MySQL Data Provider"
4242
invariant="MySql.Data.MySqlClient"
4343
description=".Net Framework Data Provider for MySQL"
44-
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=9.3.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" / -->
44+
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=9.4.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" / -->
4545

4646
<!-- ADD THIS -->
4747
<add name="MySqlConnector"
@@ -245,7 +245,6 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector.
245245
* [#109331](https://bugs.mysql.com/bug.php?id=109331): MySQL Connector/NET is incompatible with MariaDB 10.10 and later
246246
* [#109390](https://bugs.mysql.com/bug.php?id=109390): Transaction lock held after connection timeout exception
247247
* [#109476](https://bugs.mysql.com/bug.php?id=109476): `TransactionScope.Dispose` throws "Connection must be valid and open to rollback"
248-
* [#110789](https://bugs.mysql.com/bug.php?id=110789): `OpenAsync` throws unhandled exception from thread pool
249248
* [#110790](https://bugs.mysql.com/bug.php?id=110790): `ExecuteReaderAsync` hangs instead of cancelling query after `CommandTimeout`
250249
* [#110791](https://bugs.mysql.com/bug.php?id=110791): `OpenAsync(CancellationToken)` doesn't throw for cancelled token
251250
* [#111797](https://bugs.mysql.com/bug.php?id=111797): Certain sequence of special characters can break connection string validation
@@ -258,7 +257,6 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector.
258257
* [#116146](https://bugs.mysql.com/bug.php?id=116146): `MySqlConnection.OpenAsync` throws exception when `UseCompression = true`
259258
* [#116257](https://bugs.mysql.com/bug.php?id=116257): `NullReferenceException` thrown when using prepared statement under OpenTelemetry
260259
* [#116382](https://bugs.mysql.com/bug.php?id=116382): `ExecuteNonQueryAsync` hangs with DDL if `UseCompression=True`
261-
* [#117020](https://bugs.mysql.com/bug.php?id=117020): `MinPoolSize` configuration is not honored
262260

263261
### Fixed First by MySqlConnector
264262

@@ -346,4 +344,6 @@ These bugs are fixed in the latest version of MySQL Connector/NET, but were fixe
346344
* [#109683](https://bugs.mysql.com/bug.php?id=109683): `MySqlCommand.LastInsertedId` is incorrect if multiple rows are inserted.
347345
* [#109716](https://bugs.mysql.com/bug.php?id=109716), [#109727](https://bugs.mysql.com/bug.php?id=109727): Failed to add reference to 'comerr64'
348346
* [#110717](https://bugs.mysql.com/bug.php?id=110717), [#111759](https://bugs.mysql.com/bug.php?id=111759): MySql.Data is not thread-safe
347+
* [#110789](https://bugs.mysql.com/bug.php?id=110789): `OpenAsync` throws unhandled exception from thread pool
349348
* [#114527](https://bugs.mysql.com/bug.php?id=114527): Connector/NET hangs on second connection attempt to non-running database
349+
* [#117020](https://bugs.mysql.com/bug.php?id=117020): `MinPoolSize` configuration is not honored

tests/Benchmark/Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ItemGroup>
99
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
1010
<PackageReference Include="MySqlConnector" Version="2.4.0" />
11-
<PackageReference Include="MySql.Data" Version="9.3.0" />
11+
<PackageReference Include="MySql.Data" Version="9.4.0" />
1212
</ItemGroup>
1313

1414
<!-- <ItemGroup>-->

tests/IntegrationTests/ConnectAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public async Task ConnectKeepAlive()
110110
await Task.Delay(3000);
111111
}
112112

113-
[SkippableFact(ServerFeatures.Timeout, MySqlData = "https://bugs.mysql.com/bug.php?id=110789")]
113+
[SkippableFact(ServerFeatures.Timeout)]
114114
public async Task ConnectTimeoutAsync()
115115
{
116116
var csb = new MySqlConnectionStringBuilder

tests/IntegrationTests/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<DbProviderFactories>
55
<add name="MySqlConnector" invariant="MySqlConnector" description="Async MySQL ADO.NET Connector" type="MySqlConnector.MySqlConnectorFactory, MySqlConnector, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92" />
66
<remove invariant="MySql.Data.MySqlClient" />
7-
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=9.3.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
7+
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=9.4.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
88
</DbProviderFactories>
99
</system.data>
1010
</configuration>

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It also verifies that MySqlConnector and MySQL Connector/NET (MySql.Data) have s
77

88
The tests require a MySQL server. The simplest way to run one is with [Docker](https://www.docker.com/community-edition):
99

10-
docker run -d --rm --pull always --name mysqlconnector -e MYSQL_ROOT_PASSWORD=pass -p 3306:3306 --tmpfs /var/lib/mysql mysql:9.3 --max-allowed-packet=96M --character-set-server=utf8mb4 --disable-log-bin --local-infile=1 --max-connections=250
10+
docker run -d --rm --pull always --name mysqlconnector -e MYSQL_ROOT_PASSWORD=pass -p 3306:3306 --tmpfs /var/lib/mysql mysql:9.4 --max-allowed-packet=96M --character-set-server=utf8mb4 --disable-log-bin --local-infile=1 --max-connections=250
1111
docker exec mysqlconnector mysql -uroot -ppass -e "INSTALL COMPONENT 'file://component_query_attributes'; CREATE USER 'caching-sha2-user'@'%' IDENTIFIED WITH caching_sha2_password BY 'Cach!ng-Sh@2-Pa55'; GRANT ALL PRIVILEGES ON *.* TO 'caching-sha2-user'@'%';"
1212

1313
Copy the file `IntegrationTests/config.json.example` to `IntegrationTests/config.json`, then edit

0 commit comments

Comments
 (0)