permalink structure for single-{post-type}.php in wordpress

Like you wrote above, you should use 'rewrite' => array( 'slug' => 'custom-post-type' ) when registering your post type.

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