who to limit number of li in wp_nav_menu

See Function Reference/wp nav menu

if ( has_nav_menu( 'main_nav' ) ) {
    wp_nav_menu( array('menu' => 'guest menu', 'fallback_cb' => false )); 
}

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