redirecting an entire WP site from one top level domain to another

No, you’d want a rewrite rule that captures & redirects the request:

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

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