Get page by path – honoring permalink settings (urls w/slashes)

You can use url_to_postid() to get the post ID with the relative page url.

$url="/page-parent/page/";
$post_id = url_to_postid( $url );

https://developer.wordpress.org/reference/functions/url_to_postid/

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