3 my $db_name = RT->Config->Get('DatabaseName');
4 my $db_rthost = RT->Config->Get('DatabaseRTHost');
5 my $db_user = RT->Config->Get('DatabaseUser');
6 my $db_pass = RT->Config->Get('DatabasePassword');
8 RT->Logger->warn("DatabaseUser option is not defined or empty. Skipping...");
11 if ( $db_user eq 'root' ) {
12 RT->Logger->warn("DatabaseUser is root. Skipping...");
15 $db_name =~ s/([_%\\])/\\$1/g;
17 "GRANT SELECT,INSERT,CREATE,INDEX,UPDATE,DELETE
19 TO '$db_user'\@'$db_rthost'
20 IDENTIFIED BY '$db_pass';",