Custom post type – Errors

read https://developer.wordpress.org/reference/functions/add_action/

then use:

add_action('after_setup_theme', 'PostTypeCreate_Works');

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