I
I
IvanOne2015-01-19 19:10:48
MySQL
IvanOne, 2015-01-19 19:10:48

-bash: mysql: command not found what to do?

version of the Linux distribution kit version 3.8.0-35-generic ([email protected]) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) the
server is not mine and the admin cannot be caught yet. I write mysql and in response I get -bash: mysql: command not found
here is what is in the path variable - /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /usr/games
tried to restart mysql as a service but nothing happened. on this server the site is spinning like mysql. I recently started working with servers, so tell me what the trick is.
config file:

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
"/etc/mysql/my.cnf" 127L, 3505C

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2015-01-19
@IvanOne

Install client package:
sudo apt-get install mysql-client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question