How to get all posts except for one post from a certain custom post type?

Use the post__not_in Argument of wp_query like this

$query= new WP_Query(array('post_type' => 'rooms', 'post__not_in' => array(164));

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