In my case I am trying
mysql --version
so it is showing
mysql Ver 15.1 Distrib 5.5.35-MariaDB, for Linux (x86_64) using readline 5.1
but when I am giving
service mysql status
It showing path is not available
,please help to find out mysql server is installed or not in particular linux machine.
You need to check existense of binaries:
which mysql
) if you need to check client existence which mysqld_safe
or which mysqld
) if you need to check server existence On debian it could be done using dpkg
:
dpkg -s mysql-server
returns
Package: mysql-server
Status: install ok installed
[...]
or
dpkg-query: package 'mysql-server' is not installed and no information is available
same for mysql-client
Try this simple step if you are using Ubantu OS. Go to search>> Ubantu software center(type in search)>>Installed(click)>>Developer Tools(click)(then it will show that mysql software is installed or not)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.