Custom Post Type Not Displaying Correctly

After registering a custom post type, you must flush the rewrite rules so WordPress knows what the URL / slug should be.

flush_rewrite_rules()

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