[CONJ-910] mysql: db url scheme is not supported in v3 Created: 2021-12-23  Updated: 2022-01-10  Resolved: 2022-01-10

Status: Closed
Project: MariaDB Connector/J
Component/s: configuration
Affects Version/s: None
Fix Version/s: 3.0.3

Type: Bug Priority: Major
Reporter: Oleg Alexeyev Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

I wonder if there are strong reasons to drop mysql: db url scheme? As many people use MariaDB driver as a drop-in replacement for Oracle MySQL one. At least it would be really nice if there would be an option to enable that.



 Comments   
Comment by Diego Dupin [ 2022-01-10 ]

There has been many times when mysql driver is present in classpath and when using `jdbc:mysql`, the driver used is randomly mariadb or mysql.

3.0 is a rewrite of driver, resulting in dropping those edge case, but to avoid incompatibility, or at least provide a workaround, `jdbc:mysql` will still be possible if adding 'permitMysqlScheme' in connection string.
Example :
`jdbc:mysql://localhost/test?myOption=value&permitMysqlScheme`

Generated at Thu Feb 08 03:19:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.