How do we exclude multiple pages (like opposite of is_page)

The opposite of is_page() will be ! is_page(). In php the ! is used as negative, so ! is_page( 42 ) will means something like

if we are not on page ID 42, do something, in other words exclude page ID 42

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)