remove permalink “front part” for custom post type

Use the argument:

'rewrite' => array(
    'slug' => 'event',
    'with_front' => false,
)

The ‘with_front’ flag controls whether to use the front part you’ve defined.

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