I enter into the terminal mysql -version and gives me

ERROR 2002 (HY000): Can't connect to MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) `

Closed due to the fact that off-topic participants Dmitriy Simushev , cheops , zRrr , user194374, Streletz 21 Jun '16 at 9:22 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Dmitriy Simushev, cheops, Community Spirit, Streletz
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    And rightly so. The right mysql --version command mysql --version - Dmitriy Simushev
  • in any case when I enter other teams - darkwoolf
  • For example, mysql -pMyPassword - darkwoolf

1 answer 1

And rightly so. Right mysql --version command