diff --git a/xCAT-client/bin/mysqlsetup b/xCAT-client/bin/mysqlsetup index 0a150224e..dd0711aac 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 +# if not just odbc update and not already running mysql or mysqlsetup -u # Get root and admin passwords # -if (($odbconly == 0) && ( $::xcatrunningmysql == 0)) +if ((($odbconly == 0) && ( $::xcatrunningmysql == 0)) || $::UPDATE ) { # not just updating the odbc if ($ENV{'XCATMYSQLADMIN_PW'}) # input env sets the password {