Closed Thread
Results 1 to 10 of 10

Thread: MySQL Version

  1. #1
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0

    MySQL Version

    How can you tell what version of MySQL is installed? Most apps you do "appname -v" but this doesn't work. Any help?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    You're close.
    Code:
    mysql --version

  4. #3
    Jordan Guest
    I didn't even know about mysql --version. I've always logged into mysql and typed status.

    # mysql
    mysql > status

  5. #4
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    And I didn't know about the "status."
    It seems like we're all learning something each day.

  6. #5
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Thanks, both work fine.

  7. #6
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    So does the

    Code:
    --version
    work with any program? so we can get it's version?

  8. #7
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    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.

  9. #8
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Hmm good to know.

    Thanks for your reply.

  10. #9
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    So the --version is common for Linux developers? I've seen a lot of -v for version.

  11. #10
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    --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.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 09-28-2009, 10:16 AM
  2. Replies: 0
    Last Post: 01-26-2009, 11:14 AM
  3. Replies: 1
    Last Post: 01-29-2008, 11:40 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts