Custom Post Archive is not working

why don’t you try adding:

    'has_archive'        => true,

to your code?

so replace this line:

    'public'        => true,

with this:

    'public'        => true,
    'has_archive'        => true,

Then refresh your permalinks by visiting settings/permalinks.

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