Getting rid of /my_custom_post_type/ in the single view URL

register_post_type( 'my_custom_post_type', array(
    'rewrite' => array( 'with_front' => false ),
    // other args
));

Make sure you flush your permalinks after changing your code – simply going to Settings > Permalinks is sufficient.

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