how can i add custom menu in admin panel?

You need to use add_menu_page and add_submenu_page to display menu and sub menu.

For more, refeir https://developer.wordpress.org/reference/functions/add_menu_page/
https://developer.wordpress.org/reference/functions/add_submenu_page/

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