After creating hierarchical post type, still not getting any way to set parent

Try adding ‘page-attributes’ to the supports flags: 'supports' => array(..., 'page-attributes').

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