Go Back   Linux Forums by TotalPenguin! Get linux Help! > GUI Linux > Linux Applications

Linux Applications Discussion for Linux Software and Application releated issues.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-2008, 12:46 AM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 390
Tor is on a distinguished road
Default 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?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-02-2008, 08:33 AM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

You're close.
Code:
mysql --version
Reply With Quote
  #3 (permalink)  
Old 02-02-2008, 08:25 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 570
Jordan is on a distinguished road
Default

I didn't even know about mysql --version. I've always logged into mysql and typed status.

# mysql
mysql > status
Reply With Quote
  #4 (permalink)  
Old 02-02-2008, 09:03 PM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

And I didn't know about the "status."
It seems like we're all learning something each day.
Reply With Quote
  #5 (permalink)  
Old 02-05-2008, 02:40 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 390
Tor is on a distinguished road
Default

Thanks, both work fine.
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 02-13-2008, 01:26 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

So does the

Code:
--version
work with any program? so we can get it's version?
__________________
Business Directory
Technology Blog
Reply With Quote
  #7 (permalink)  
Old 02-13-2008, 03:05 PM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

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.
Reply With Quote
  #8 (permalink)  
Old 02-14-2008, 11:38 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

Hmm good to know.

Thanks for your reply.
__________________
Business Directory
Technology Blog
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 11:50 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 390
Tor is on a distinguished road
Default

So the --version is common for Linux developers? I've seen a lot of -v for version.
Reply With Quote
  #10 (permalink)  
Old 02-22-2008, 07:23 AM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

--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.
Reply With Quote

Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Root Password Prog Linux Applications 1 10-08-2007 08:38 PM
.SQL into MySQL Lop Linux Applications 3 08-14-2007 07:01 PM


All times are GMT. The time now is 02:50 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.