Closed lucasmrod closed 3 weeks ago
Instead of checking for versions, how about check for functionality? e.g. can it do JSON?
As I understand it some flavors of MySQL can, some can't?
I'm actually submitting an issue about Fleet failing on MariaDB right now... would be great if MariDB was supported.
Closing this as stale. On a related note: Fleet has dropped support for MySQL 5.7 and starting in 4.55.0 is only supporting MySQL 8.0.36+.
Fleet serves with care, Aegis for MySQL's health, Cloud city's calm guard.
Goal
Discourage users to run Fleet with unsupported MySQL databases/versions.
How
Fleet serve will exit if the MySQL database or version is not supported. Also provide an option
FLEET_ALLOW_UNSUPPORTED_MYSQL
to allow runningfleet serve
even if the added start up check fails.TBD: How exactly to get the server and its version (e.g. in the case of Percona
SELECT VERSION()
only shows version number...)Some experiments:
With
mariadb:10.6
:With
mysql:5.7
:With 5.7.35-38-log Percona Server (GPL):
So we'll need some form of heuristics to determine the database server.