diff --git a/xCAT-client/bin/mysqlsetup b/xCAT-client/bin/mysqlsetup
index dd0711aac..fb782c4d7 100755
--- a/xCAT-client/bin/mysqlsetup
+++ b/xCAT-client/bin/mysqlsetup
@@ -205,10 +205,10 @@ if ($::osname eq 'AIX')
     &setulimits;
 }
 
-#  if not just odbc update  and not already running mysql or mysqlsetup -u
+#  if not just odbc update  and not already running mysql or mysqlsetup -u  or -L
 #  Get root and admin passwords
 #
-if ((($odbconly == 0) && ( $::xcatrunningmysql == 0)) || $::UPDATE )
+if ((($odbconly == 0) && ( $::xcatrunningmysql == 0)) || $::UPDATE || $::SETUPLL )
 {    # not just updating the odbc
     if ($ENV{'XCATMYSQLADMIN_PW'})    # input env sets the password
     {