I maintain an opensource project that supports multiple database backends. Users can either MySQL, MariaDB, Postgres etc..
There is a variation in behaviour between MySQL and MariaDB and I need to determine which database server is in use.
Given a MySQL connection only: how can I determine which MySQL server flavor I am talking to? MySQL or MariaDB? Is there a magic SQL query?
Note: select version();
does not provide any info on whether we are speaking with a MySQL or MariaDB server.