Running the Loop outside of WordPress

You should rewrite the_permalink() function.

http://your_blog_addres/<?php the_slug(); ?>

should be what you are looking for.

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