how to check sphinx version?
I install a sphinx search engine a couple months ago, as time pass, I don't remember that sphinx version I installed.
how to check my system sphinx version?
Solution 1:
May be just run the command searchd
without any parameter
It shows following when I just tried
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-20009, Andrew Aksyonoff
....
Solution 2:
Run searchd with '--help' parameter which show the searchd version:
searchd --help
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
Solution 3:
just type in terminal:
sphinx-build --version
Solution 4:
Here are few ways to do it from python itself:
$ python -c 'import sphinx; print sphinx.__version__'
'1.1.3'
The same of above, with a single instruction variant:
$ python -c 'print __import__("sphinx").__version__'
'1.1.3'
Or, using pkg_resources
:
$ python -c 'import pkg_resources; print pkg_resources.require("sphinx")[0].version'
'1.1.3'
The same of above, with a single instruction variant:
$ python -c 'print __import__("pkg_resources").require("sphinx")[0].version'
'1.1.3'
Solution 5:
You can also just connect with the MySQL client.
% mysql --host=sphinx.example.com --port=9306 --protocol=tcp
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 2.2.7-id64-release (r4883)
There you have the server version. The --protocol=tcp
may be needed if the host is localhost.