A
A
adrash kh2018-09-24 15:46:30
MySQL
adrash kh, 2018-09-24 15:46:30

What is the error when logging into mysql?

Good afternoon.
I'm trying to log into mysql, I enter the line mysql -u root -p into the terminal. It throws this error
The program 'mysql' can be found in the following packages:
* mysql-client-core-5.7
* mariadb-client-core-10.1
Try: sudo apt install
What should I do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kalapanga, 2018-09-24
@kalapanga

You just installed the server, without the console client.
sudo apt-get install mysql-client
https://help.ubuntu.ru/wiki/mysql

T
topconf, 2018-09-24
@topconf

Your mysql-common version is higher than client and server - 5.8

A
Ainur Valiev, 2018-09-24
@vaajnur

is the server running?
service mysql status

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question