code: def status(**connection_args):
      '''
      Return the status of a MySQL server using the output from the ``SHOW
      STATUS`` query.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mysql.status
      '''
      dbc = _connect(**connection_args)
      if dbc is None:
          return {}
      cur = dbc.cursor()
      qry = 'SHOW STATUS'
      try:
          _execute(cur, qry)
      except OperationalError as exc:
          err = 'MySQL Error {0}: {1}'.format(*exc.args)
          __context__['mysql.error'] = err
          log.error(err)
          return {}
  
      ret = {}
      for _ in range(cur.rowcount):
          row = cur.fetchone()
          ret[row[0]] = row[1]
      return ref status(**connection_args):
      '''
      Return the status of a MySQL server using the output from the ``SHOW
      STATUS`` query.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mysql.status
      '''
      dbc = _connect(**connection_args)
      if dbc is None:
          return {}
      cur = dbc.cursor()
      qry = 'SHOW STATUS'
      try:
          _execute(cur, qry)
      except OperationalError as exc:
          err = 'MySQL Error {0}: {1}'.format(*exc.args)
          __context__['mysql.error'] = err
          log.error(err)
          return {}
  
      ret = {}
      for _ in range(cur.rowcount):
          row = cur.fetchone()
          ret[row[0]] = row[1]
      return ret
docs: Return the status of a MySQL server using the output from the ``SHOW
      STATUS`` query.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mysql.status