How can I set the page template of a new custom post type post?

You need to create the template files within your theme using the correct naming.

Please see:

https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-page-templates-for-specific-post-types

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