Using custom post type parent as slug

Not sure if I understood you right, but there’s an option when registering the custom post type:

register_post_type( 'your_cpt_name', array(
    'rewrite' => array( 'with_front' => true )
) );

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