NAME:
  mysqlcmd
 PURPOSE:
  Send a command to open database and collect the answer.
 DESCRIPTION:
 CATEGORY:
  Database
 CALLING SEQUENCE:
  mysqlcmd,lun,query,answer,nlines
 INPUTS:
  lun - the logical unit of the pipe (opened by openmysql).
  query - String (or array of strings) to send to pipe.
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
 OUTPUTS:
  answer - Returned information from query (possible string array).
  nlines - Number of lines of returned information (may be zero).
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
  Written by Marc W. Buie, Lowell Observatory, 2002/01/09
  2010/04/10, MWB, upgraded internal loop variable to long