diff --git a/oam/oamcpp/liboamcpp.cpp b/oam/oamcpp/liboamcpp.cpp index e2e2a7e42..7ae5d5bfe 100644 --- a/oam/oamcpp/liboamcpp.cpp +++ b/oam/oamcpp/liboamcpp.cpp @@ -8757,8 +8757,8 @@ namespace oam while (file.getline(line, 400)) { buf = line; - - string::size_type pos = buf.find(USER,0); + //find the mariadb user, root + string::size_type pos = buf.find("root",0); if (pos != string::npos) { file.getline(line, 400); diff --git a/oamapps/postConfigure/getMySQLpw.cpp b/oamapps/postConfigure/getMySQLpw.cpp index fe6d84637..c47774af5 100644 --- a/oamapps/postConfigure/getMySQLpw.cpp +++ b/oamapps/postConfigure/getMySQLpw.cpp @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) { buf = line; - string::size_type pos = buf.find(USER,0); + string::size_type pos = buf.find("root",0); if (pos != string::npos) { file.getline(line, 400);