How to get post permalink url without a href

What you need is get_permalink, e.g.

$current_post_url = get_permalink();

You can either use it inside a post loop, or pass it a post ID as a parameter.

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