HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2018-06-09 89e321e3e8ac4c280890cc28871f17eeae01384c
MyySQL: GRANT WITH GRANT OPTION when updating db owner.
1 files modified
2 ■■■ changed files
hsarback/src/de/hsadmin/mods/db/MySqlDatabaseProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/db/MySqlDatabaseProcessorFactory.java
@@ -47,7 +47,7 @@
        String aOwner = AbstractEntity.escapeString(db.getOwner());
        JDBCProcessor aJDBCP = null;
        aJDBCP = createMySqlAdminProcessor();
        aJDBCP.addSQL("GRANT ALL ON " + aName + ".* TO '" + aOwner + "'@'%'");
        aJDBCP.addSQL("GRANT ALL ON " + aName + ".* TO '" + aOwner + "'@'%' WITH GRANT OPTION");
        return aJDBCP;
    }