I changed post_type and now I receive 404 errors

Just try to update permalinks (i.e. Trigger a flush of the rewrite rules).

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