Help me fix these crazy attachment page URLs (rewrite?)

The attachment page generally gets the “title” value as it’s slug. Are you not filling in the image information like title, caption, etc? Might give that a try.

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