We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9eed1c commit 9ce165bCopy full SHA for 9ce165b
app/src/Command/SqlExecute.php
@@ -66,7 +66,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
66
}
67
68
/// @todo inject more randomness in the username, by allowing more chars than bin2hex produces
69
- $userName = bin2hex(random_bytes(8)); // old mysql versions have a limitation of 16 chars for usernames
+ $userName = 'db3v4l_' . substr(bin2hex(random_bytes(5)), 0, 9); // some mysql versions have a limitation of 16 chars for usernames
70
$password = bin2hex(random_bytes(16));
71
//$dbName = bin2hex(random_bytes(31));
72
$dbName = null; // $userName will be used as db name
0 commit comments