Custom location for menu

You need to add the echo argument so that function returns the menu:

wp_nav_menu( array( 'theme_location'=>'primary', 'echo' => false ) )

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