You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
11179: Set version string in initial server response
MySQL servers return a version string in the initial connection response. Some clients read this and expect certain versions of MySQL or MariaDB. We return 8.0.31 by default, since that corresponds with the MySQL version we advertise feature parity with.
Currently, we use the @@version system variable as the source of truth for the version string, and this can be configued via a server config file. But we extract the config for the listener before we initialize system variables. Previously this meant that the version string on connection defaulted to the value specified in our vitess dependency, which was hardcoded to 8.0.31.
This PR changes the behavior to extract a string from the config if it exists.
We need to use a client integration test for this, since the Go SQL driver ignores the version in the connection info and does not provide a way to view it.