code: def verify_login(user, password=None, **connection_args):
      '''
      Attempt to login using the provided credentials.
      If successful, return true.  Otherwise, return False.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mysql.verify_login root password
      '''
      # Override the connection args for username and password
      connection_args['connection_user'] = user
      connection_args['connection_pass'] = password
  
      dbc = _connect(**connection_args)
      if dbc is None:
          # Clear the mysql.error if unable to connect
          # if the connection fails, we simply return False
          if 'mysql.error' in __context__:
              del __context__['mysql.error']
          return False
      return Truf verify_login(user, password=None, **connection_args):
      '''
      Attempt to login using the provided credentials.
      If successful, return true.  Otherwise, return False.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mysql.verify_login root password
      '''
      # Override the connection args for username and password
      connection_args['connection_user'] = user
      connection_args['connection_pass'] = password
  
      dbc = _connect(**connection_args)
      if dbc is None:
          # Clear the mysql.error if unable to connect
          # if the connection fails, we simply return False
          if 'mysql.error' in __context__:
              del __context__['mysql.error']
          return False
      return True
docs: Attempt to login using the provided credentials.
      If successful, return true.  Otherwise, return False.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' mysql.verify_login root password