How is that possible that on the same system I can use mysqldump but not mysql? While mysqldump works fine, the mysqlclient says, root user access is denied. Explicit parameter to connect to the socket does not help either.

How to assess this problem further?

  • 1
    Please show the exact commands you are using and how they fail. Also, tell us about your operating system and which version of MySQL you have running, and which users you have added.
    – slhck
    Aug 19, 2019 at 8:30

1 Answer 1


I have forgotten to use "-p" option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.