I've created a very simple MySQL scanning module for the
  metasploit framework.
  
  1. Download the mysql_version file and rename it to
  mysql_version.rb and put it in the
  framework-3.2/modules/auxiliary/scanner/mysql directory of your
  metasploit installation.
  http://compukid.no-ip.org/dev/scripts/mysql_version
  
  2. Use using msfcli
  ./msfcli auxiliary/scanner/mysql/mysql_version RHOSTS=192.168.0.1
  E
  [*] 192.168.0.1:3306, MySQL server version: 5.0.81-1-log
  (Protocol 10)
  
  3. More options:
  set THREADS to 10 and RHOSTS to 192.168.0.0/24 to scan a whole
  network.
    
                    Showing entries 1 to 1
                
    
            
                    
            May
            
        
        
        10
            2009
        
    
                    Showing entries 1 to 1