MyySQL: GRANT WITH GRANT OPTION when updating db owner.

This commit is contained in:
Michael Hierweck 2018-06-09 11:51:46 +02:00
parent 605701bb3f
commit 89e321e3e8

View File

@ -47,7 +47,7 @@ public class MySqlDatabaseProcessorFactory implements EntityProcessorFactory {
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;
}