Is get_permalink also the canonical URL?

Unless you are doing something weird with your URL structure (and maybe even then), the answer is yes according to this blog post.

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