Switched server & domain name, now custom post types won’t save

Try re-generating the permalinks structure. And check that you have the correct urls in the general options (WPURL and URL)

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