S
S
speedvm2020-12-02 14:23:40
linux
speedvm, 2020-12-02 14:23:40

Is it possible to change the information in mysql version output?

The question, so to speak, is only for the sake of sporting interest.
Is it possible from this:

[email protected]: mysql --version
mysql  Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1

do this:
[email protected]: mysql --version
mysql  Ver 15.1 Distrib 10.1.44-MariaDB, for Linux (x86_64) using readline 5.1

?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sand, 2020-12-02
@speedvm

For the sake of sport, rename `which mysql` and write a script called mysql that will give you what you need with the --version argument, and pass the rest of the options to the renamed real mysql

A
Alexander, 2020-12-02
@StupidQuestion

Find where a string is pulled from

Ver 15.1 Distrib 10.1.44-MariaDB, for Linux (x86_64) using readline 5.1
, replace/change if possible via text editor (?)

R
Roman Sokolov, 2020-12-02
@jimquery

Download the sources and compile with your data.

C
CityCat4, 2020-12-03
@CityCat4

You need to start by answering the question of whether there are root rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question