Skip to content

Instantly share code, notes, and snippets.

@mikeyp
Created March 16, 2015 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyp/6f68d65af23e1ece0db5 to your computer and use it in GitHub Desktop.
Save mikeyp/6f68d65af23e1ece0db5 to your computer and use it in GitHub Desktop.
mikey-p ~/git/example.org (master): drush --version
Drush Version : 7.0.0-alpha9
mikey-p ~/git/example.org (master): drush sa @dev
$aliases["dev"] = array (
'uri' => 'dev.example.org',
'root' => '/var/www/dev.example.org/htdocs',
'remote-host' => 'example.org',
'remote-user' => '316e',
'path-aliases' =>
array (
'%files' => 'files/',
'%dump-dir' => '/tmp',
),
'#file' => '/Users/mdp/git/example.org/sites/default/aliases.drushrc.php',
'#name' => 'dev',
);
mikey-p ~/git/example.org (master): drush @dev status
The drush command '@dev status' could not be found. Run `drush cache-clear drush` to clear the commandfile cache if you have installed new [error]
extensions.
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This may occur when Drush is trying to:
* bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working
database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details.
* connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See
http://drupal.org/node/1428638 for details.
Drush was attempting to connect to:
Drupal version : 7.34
Site URI : http://default
PHP executable : /usr/local/bin/php
PHP configuration : /usr/local/etc/php/5.6/php.ini
PHP OS : Darwin
Drush version : 7.0.0-alpha9
Drush temp directory : /tmp
Drush configuration : /Users/mdp/git/example.org/sites/default/drushrc.php
Drush alias files : /Users/mdp/.drush/6lzup6cije766.aliases.drushrc.php /Users/mdp/git/example.org/sites/default/aliases.drushrc.php
Drupal root : /Users/mdp/git/example.org
Site path : sites/default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment