WordPress Permalink Problem 404

After a bit of googling, I myself sorted out.

Just add the following line in your .htacess

RedirectMatch 301 ^/(\d+).html$ http://sitename.com/?p=$1

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