Which hook runs first(init,… or ???) [duplicate]

Generally after_setup_theme is the first action hook available to themes, triggered immediately after the active theme’s functions.php file is loaded. At this stage, the current user is not yet authenticated.

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