Skip to content

Instantly share code, notes, and snippets.

@fenix011
Created January 11, 2017 10:14
Show Gist options
  • Save fenix011/67b1df90a75a94f9fd635d54697a364b to your computer and use it in GitHub Desktop.
Save fenix011/67b1df90a75a94f9fd635d54697a364b to your computer and use it in GitHub Desktop.
root@i-ching:/var/www/html/latinamericajourneys/_www# drush @y.prod sql-conf
Array
(
[database] => alice
[username] => admin75KqrXl
[host] => localhost
[port] =>
[driver] => mysql
[prefix] =>
)
root@i-ching:/var/www/html/latinamericajourneys/_www# drush @platform._local sql-conf
Unable to load class Drush\Sql\Sql [error]
exception 'Drush\Sql\SqlException' with message 'Unable [error]
to find a matching SQL Class. Drush cannot find your
database connection details.' in
/root/.composer/vendor/drush/drush/commands/sql/sql.drush.inc:588
Stack trace:
#0
/root/.composer/vendor/drush/drush/commands/sql/sql.drush.inc(220):
drush_sql_get_class()
#1 [internal function]: drush_sql_conf()
#2
/root/.composer/vendor/drush/drush/includes/command.inc(366):
call_user_func_array('drush_sql_conf', Array)
#3
/root/.composer/vendor/drush/drush/includes/command.inc(217):
_drush_invoke_hooks(Array, Array)
#4 [internal function]: drush_command()
#5
/root/.composer/vendor/drush/drush/includes/command.inc(185):
call_user_func_array('drush_command', Array)
#6
/root/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#7
/root/.composer/vendor/drush/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#8 /root/.composer/vendor/drush/drush/drush.php(12):
drush_main()
#9 {main}
root@i-ching:/var/www/html/latinamericajourneys/_www#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment