C
C
cinematik2017-06-02 17:36:23
linux
cinematik, 2017-06-02 17:36:23

mysql command not available from linux console?

Why, when executed in the console, does not find the mysql command

sh-4.2$ mysql sample_db_name
sh: mysql: command not found

openshift v3 cloud

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
airamkad, 2017-06-02
@airamkad

find / -name mysql
if it doesn’t find anything, then such a file does not exist
; if it finds it, then you don’t have paths to it

A
Alexander, 2017-06-02
@NeiroNx

if not, then you need to put:
sudo apt-get install mysql-client

A
Alexander, 2017-06-05
@AlanDrakes

First, check if the package mysql
whereis mysql
is installed. If nothing, it is not installed. Install the package.
If it is set, check if you have access (although by default every user has it).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question