How to assign plugin to top level menu?

apply $position you want in your add_menu_page please refer here for more details

https://codex.wordpress.org/Function_Reference/add_menu_page

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