Type:
Task
Priority:
Minor
Resolution:
Fixed
The official MySQL server returns version string like this:
5.5.25-log
While (latest stable) MariaDB:
10.0.17-MariaDB-1~wheezy-log
Some old and crappy CMS installations break with the MariaDB string above, like Joomla til API17:
public function hasUTF()
{
$verParts = explode('.', $this->getVersion());
return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
}
MariaDB is told to be a drop-in replacement for MySQL. In this case it is unfortunately not true. Patching the already installed webapps is usually not an option for administrators.
For this reason I recommend to add a new configuration option, something like this into mysqld section of the config file:
fake_version=5.5.25-log
With this option set, MariaDB could return the faked version string.
Imre Rad
created issue -
2015-03-14 17:03
Imre Rad
made changes -
2015-03-14 18:27
Field
Original Value
New Value
Summary
Feaute request: support for faking server version
Feature request: support for faking server version
Elena Stepanova
made changes -
2015-03-14 18:30
Affects Version/s
10.0.17
[ 18300
]
Environment
irrelevant
Issue Type
Bug
[ 1
]
Task
[ 3
]
Elena Stepanova
made changes -
2015-03-14 18:30
Fix Version/s
10.0
[ 16000
]
Sergei Golubchik
made changes -
2015-03-15 10:24
Description
The official MySQL server returns version string like this:
5.5.25-log
While (latest stable) MariaDB:
10.0.17-MariaDB-1~wheezy-log
Some old and crappy CMS installations break with the MariaDB string above, like Joomla til API17:
public function hasUTF()
{
$verParts = explode('.', $this->getVersion());
return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
}
MariaDB is told to be a drop-in replacement for MySQL. In this case it is unfortunately not true. Patching the already installed webapps is usually not an option for administrators.
For this reason I recommend to add a new configuration option, something like this into mysqld section of the config file:
fake_version=5.5.25-log
With this option set, MariaDB could return the faked version string.
The official MySQL server returns version string like this:
5.5.25-log
While (latest stable) MariaDB:
10.0.17-MariaDB-1~wheezy-log
Some old and crappy CMS installations break with the MariaDB string above, like Joomla til API17:
{code}
public function hasUTF()
{
$verParts = explode('.', $this->getVersion());
return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
}
{code}
MariaDB is told to be a drop-in replacement for MySQL. In this case it is unfortunately not true. Patching the already installed webapps is usually not an option for administrators.
For this reason I recommend to add a new configuration option, something like this into mysqld section of the config file:
fake_version=5.5.25-log
With this option set, MariaDB could return the faked version string.
Sergei Golubchik
made changes -
2015-10-29 20:40
Summary
Feature request: support for faking server version
Support for faking server version
Sergei Golubchik
made changes -
2015-10-29 20:40
Priority
Trivial
[ 5
]
Minor
[ 4
]
Sergey Vojtovich
made changes -
2015-11-24 17:58
Assignee
Sergey Vojtovich
[ svoj
]
Sergei Golubchik
[ serg
]
Status
Open
[ 1
]
In Review
[ 10002
]
Sergei Golubchik
made changes -
2015-11-26 11:40
Assignee
Sergei Golubchik
[ serg
]
Sergey Vojtovich
[ svoj
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Sergey Vojtovich
made changes -
2015-11-26 12:07
Assignee
Sergey Vojtovich
[ svoj
]
Sergei Golubchik
[ serg
]
Status
Stalled
[ 10000
]
In Review
[ 10002
]
Sergei Golubchik
made changes -
2015-11-26 16:00
Assignee
Sergei Golubchik
[ serg
]
Sergey Vojtovich
[ svoj
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Sergey Vojtovich
made changes -
2015-11-27 09:39
Remote Link
This issue links to "Github revision (Web Link)"
[ 25915
]
Sergey Vojtovich
made changes -
2015-11-27 09:39
Fix Version/s
10.2.0
[ 20700
]
Fix Version/s
10.2
[ 14601
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:22
Workflow
MariaDB v3
[ 63701
]
MariaDB v4
[ 132582
]
{"report":{"fcp":1316.5,"ttfb":285,"pageVisibility":"visible","entityId":50508,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1e66fedb-aaf1-4766-add8-aa9b6832a693","navigationType":0,"readyForUser":1485.5,"redirectCount":0,"resourceLoadedEnd":1303,"resourceLoadedStart":305.69999980926514,"resourceTiming":[{"duration":381.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":305.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":305.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687,"responseStart":0,"secureConnectionStart":0},{"duration":381.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":306,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":306,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":390.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":306.19999980926514,"connectEnd":306.19999980926514,"connectStart":306.19999980926514,"domainLookupEnd":306.19999980926514,"domainLookupStart":306.19999980926514,"fetchStart":306.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":306.19999980926514,"responseEnd":697,"responseStart":697,"secureConnectionStart":306.19999980926514},{"duration":430.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":306.40000009536743,"connectEnd":306.40000009536743,"connectStart":306.40000009536743,"domainLookupEnd":306.40000009536743,"domainLookupStart":306.40000009536743,"fetchStart":306.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":306.40000009536743,"responseEnd":736.5999999046326,"responseStart":736.5999999046326,"secureConnectionStart":306.40000009536743},{"duration":433.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":306.59999990463257,"connectEnd":306.59999990463257,"connectStart":306.59999990463257,"domainLookupEnd":306.59999990463257,"domainLookupStart":306.59999990463257,"fetchStart":306.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":306.59999990463257,"responseEnd":740.5,"responseStart":740.5,"secureConnectionStart":306.59999990463257},{"duration":434.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":306.80000019073486,"connectEnd":306.80000019073486,"connectStart":306.80000019073486,"domainLookupEnd":306.80000019073486,"domainLookupStart":306.80000019073486,"fetchStart":306.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":306.80000019073486,"responseEnd":741.3000001907349,"responseStart":741.3000001907349,"secureConnectionStart":306.80000019073486},{"duration":434.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":306.90000009536743,"connectEnd":306.90000009536743,"connectStart":306.90000009536743,"domainLookupEnd":306.90000009536743,"domainLookupStart":306.90000009536743,"fetchStart":306.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":306.90000009536743,"responseEnd":741.6999998092651,"responseStart":741.6999998092651,"secureConnectionStart":306.90000009536743},{"duration":543.8000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":307.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":307.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":850.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":435.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":307.30000019073486,"connectEnd":307.30000019073486,"connectStart":307.30000019073486,"domainLookupEnd":307.30000019073486,"domainLookupStart":307.30000019073486,"fetchStart":307.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":307.30000019073486,"responseEnd":742.6999998092651,"responseStart":742.6999998092651,"secureConnectionStart":307.30000019073486},{"duration":543.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":307.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":307.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":851.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":435.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":307.69999980926514,"connectEnd":307.69999980926514,"connectStart":307.69999980926514,"domainLookupEnd":307.69999980926514,"domainLookupStart":307.69999980926514,"fetchStart":307.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":307.69999980926514,"responseEnd":743.3000001907349,"responseStart":743.3000001907349,"secureConnectionStart":307.69999980926514},{"duration":635.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":314.69999980926514,"connectEnd":314.69999980926514,"connectStart":314.69999980926514,"domainLookupEnd":314.69999980926514,"domainLookupStart":314.69999980926514,"fetchStart":314.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":314.69999980926514,"responseEnd":950.5999999046326,"responseStart":950.5999999046326,"secureConnectionStart":314.69999980926514},{"duration":988.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":314.80000019073486,"connectEnd":314.80000019073486,"connectStart":314.80000019073486,"domainLookupEnd":314.80000019073486,"domainLookupStart":314.80000019073486,"fetchStart":314.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":314.80000019073486,"responseEnd":1303,"responseStart":1303,"secureConnectionStart":314.80000019073486},{"duration":264.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":925.6999998092651,"connectEnd":925.6999998092651,"connectStart":925.6999998092651,"domainLookupEnd":925.6999998092651,"domainLookupStart":925.6999998092651,"fetchStart":925.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":925.6999998092651,"responseEnd":1190.3000001907349,"responseStart":1190.3000001907349,"secureConnectionStart":925.6999998092651},{"duration":520,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1208.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1208.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1728.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":479.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1209.3000001907349,"connectEnd":1209.3000001907349,"connectStart":1209.3000001907349,"domainLookupEnd":1209.3000001907349,"domainLookupStart":1209.3000001907349,"fetchStart":1209.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1209.3000001907349,"responseEnd":1688.5,"responseStart":1688.5,"secureConnectionStart":1209.3000001907349},{"duration":483.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1210.4000000953674,"connectEnd":1210.4000000953674,"connectStart":1210.4000000953674,"domainLookupEnd":1210.4000000953674,"domainLookupStart":1210.4000000953674,"fetchStart":1210.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1210.4000000953674,"responseEnd":1694.3000001907349,"responseStart":1694.3000001907349,"secureConnectionStart":1210.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":28,"responseStart":285,"responseEnd":290,"domLoading":299,"domInteractive":1648,"domContentLoadedEventStart":1649,"domContentLoadedEventEnd":1727,"domComplete":2270,"loadEventStart":2270,"loadEventEnd":2270,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1582.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1583.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1583.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1590.9000000953674},{"name":"activityTabFullyLoaded","time":1771.5999999046326}],"measures":[],"correlationId":"f76f4f3a1cfd09","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":193,"dbReadsTimeInMs":46,"dbConnsTimeInMs":59,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
We can simply make @@version writable (from the command-line, not run-time)