Skip to content

Commit c9e57fe

Browse files
committed
fix: show sql query to delete user if we have a private database
1 parent 8029726 commit c9e57fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/Database/DeleteDatabaseUserCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ protected function perform(InputInterface $input, OutputInterface $output)
7171

7272
if (!$databaseServer['publicly_accessible']) {
7373
$output->newLine();
74-
$output->important('The database user needs to be manually deleted on the database server because it isn\'t publicly accessible');
74+
$output->important('The database user needs to be manually deleted on the database server because it isn\'t publicly accessible. You can use the following query to delete it');
75+
$output->writeln(sprintf('DROP USER IF EXISTS %s@\'%%\'', $user['username']));
7576
}
7677
}
7778
}

0 commit comments

Comments
 (0)