Can a page_id and a post_id be same?

No, all posts, pages and other custom post types exist in the same table (wp_posts) and they all share the same ID column. The ID is unique to each entry regardless of its post type.

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