How do I fix a permalink that keeps adding an extra part on the end and leading to a 404 error page?

How do I fix a permalink that keeps adding an extra part on the end and leading to a 404 error page?

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