Can’t edit Custom Post Type slug/permalink

Found a box under Screen Options to display the Slug on the custom post type. Created a metabox with the slug to be edited, not quite how it works on Pages but it solved the issue.

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