hard flush_rewrite_rules() not regenerating .htaccess

Try using this for the the rewrite:

global $wp_rewrite;
$wp_rewrite->flush_rules( true );

see if that will work.

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