Migrating WordPress site from subdirectory to subdomain

There is a very specific process to moving a WordPress site. You need to move the files and folders and change the rewrite block in .htaccess. But you also need to change URLs in the database.

See Moving WordPress « WordPress Codex and WordPress Serialized PHP Search Replace Tool.

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