Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calrified the MySQL permissions needed #12

Merged
merged 1 commit into from
May 2, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Amp/Command/ConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ protected function execute(InputInterface $input, OutputInterface $output) {

$output->writeln("");
$output->writeln("<info>=============================[ Configure MySQL ]=============================</info>");
$output->writeln("");
$output->writeln("<info>"
."Amp creates a unique MySQL user for each generated instance.\n"
."To accomplish this amp needs GRANT-level privileges. It is\n"
."recommended that you supply the root/administrator credentials\n"
."for this task. If you wish to create a new user for amp to use\n"
."please assign it appropriate privileges eg:\n\n"
."<fg=cyan;bg=black;option=bold>GRANT ALL ON *.* to '#user'@'localhost' IDENTIFIED BY '#pass' WITH GRANT OPTION</fg=cyan;bg=black;option=bold>"
."</info>"
);

$this->config->setParameter('mysql_type', 'dsn'); // temporary limitation
$this->askMysqlDsn()->execute($input, $output, $dialog);

Expand Down