MariaDB driver accept connection string begining with "jdbc:mariadb:" and "jdbc:mysql:".
so when DriverManager call registred driver for an url, if MySQL driver is in classpath, Driver will randomly return a MySQL or MariaDB Driver.
Goal is to permit having MariaDB and MySQL driver are in same classpath for good reason (testing, benchmark, ...).
Driver.acceptsUrl(String url) must return false for connection string beginning with "jdbc:mysql" AND containing "disableMariaDbDriver".
So when MySQL AND MariaDB drivers are on same classpath, DriverManager.getConnection("jdbc:mysql://localhost/db?user=root&disableMariaDbDriver") will always return a connection using MySQL driver