Capabilities not working with custom post type

You should map CPT capabilities with the capability_type This way can WP understand what you want to do.
Try edit_$cap_type (where $cap_type = alert)

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