[MDEV-10982] Faking the server version also changes version number logged to error log Created: 2016-10-08  Updated: 2017-02-27  Resolved: 2016-11-08

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.2
Fix Version/s: 10.2.3

Type: Bug Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-10967 Print the real version in the error l... Closed
Problem/Incident
is caused by MDEV-7780 Support for faking server version Closed
Sprint: 10.2.4-1

 Description   

Setting a fake version string does not only change what version number clients see, but also what server version is printed to the error log.

This should either show the real version, or both the "real" and "faked" version.

Otherwise things can become really confusing when trying to analyse error logs ...



 Comments   
Comment by Hartmut Holzgraefe [ 2016-10-08 ]

I have

[mysqld]
version=1.2.3

in my.cnf and the startup messages in the error log look like this:

It is actually correct at the beginning of the startup messages:

161008 13:09:06 mysqld_safe Starting mysqld daemon with databases from /usr/local/mariadb-git-hartmut-MDEV-10541/var
2016-10-08 13:09:06 140571076974784 [Note] /usr/local/mariadb-git-hartmut-MDEV-10541/bin/mysqld (mysqld 10.2.3-MariaDB as 1.2.3) starting as process 7174 ...

but not at the end when the server actually becomes ready:

2016-10-08 13:09:06 140571076974784 [Note] /usr/local/mariadb-git-hartmut-MDEV-10541/bin/mysqld: ready for connections.
Version: '1.2.3'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution

Comment by Diego Dupin [ 2017-02-27 ]

using 10.2.4 version, using "version=10.2.4-diego" in my.ini ,
driver still receive the "fake" version "5.5.5-" prefix. (driver in my example receive "5.5.5-10.2.4-diego")

Generated at Thu Feb 08 07:46:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.