MYSQL Version in Linux

I ran a mysql -V in Linux to see what version of mysql is on my server.

What version is this:

"mysql  Ver 14.7 Distrib 4.1.21, for portbld-freebsd6.0 (i386) using  5.0"

I am very confused as it saysin Using 5.0 at the end.


Who is Participating?
using 5.0 tells you that you mysql-client is using readline version 5.0. On my SuSe i get for  mysql -V :
mysql  Ver 14.12 Distrib 5.0.18, for suse-linux (x86_64) using readline 5.1
* 14.12 is the version the mysql-client tool
* 5.0.18 is the version of the used mysql-client-libs
* 5.1 is the version of readline used (so the text readline is missing in your bsd-port)

Kerem ERSOYPresidentCommented:
BTW - you told you're running Linux but your mysql is not agree that. It seems to me that you're rather running freebsd but not linux.  

The version of mysql you're running is "4.1.21" and "5.0" is the version of readline as hernst42 told. This library is responsible for reading your responses from the console.

To display full version varables you'd run mysql and issue this command:
# mysql
> show variables like "%version%"

Also if you want to display your os version use this command
uname -a

Kerem ERSOYPresidentCommented:
oops please don't forgert to add a semicolon after the show variables command such as this:
> show variables like "%version%";
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.