How to get custom URL routes property_id in wp php plugin?

get property_id to URL: ‘index.php?properties/123’ (index.php?pagename=properties&property_id=$matches[1])

$property_id = get_query_var( ‘property_id’, 1 );
output : 123

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