user11737458
user11737458

Reputation: 41

Access denied while checking MySQL version

I installed MySQL5.6 on Ubuntu 16.04.

I am trying to get MySQL version by using command

mysql -v

getting this error "Access denied for user 'root'@'localhost' (using password: NO)"

Please assist

Upvotes: 0

Views: 274

Answers (1)

tadman
tadman

Reputation: 211700

If you just want the version:

mysql --version

The -v option is the verbose flag, not version, meaning it tries to connect to the server. In order to do that you need valid credentials.

For more information:

mysql --help

Upvotes: 1

Related Questions