How can you tell what version of MySQL is installed? Most apps you do "appname -v" but this doesn't work. Any help?
You're close.
Code:mysql --version
I didn't even know about mysql --version. I've always logged into mysql and typed status.
# mysql
mysql > status
And I didn't know about the "status."
It seems like we're all learning something each day.
Thanks, both work fine.
So does the
work with any program? so we can get it's version?Code:--version
It depends on how the program is designed and built. Most software for Linux has the --version-option, so you would be able to use it with lots of programs.
Hmm good to know.
Thanks for your reply.
So the --version is common for Linux developers? I've seen a lot of -v for version.
--version and -v are usually implemented together, exactly like --help and -h. You will have to decide yourself which of them to use. Normally I use the "long ones" (--version, --help, etc.), except when I've to pass many strings to the program.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks