WebFaction
Community site: login faq

I am looking for advice on getting drush to work with a private mysql instance.

All drush commands seem to work on my regular databases. But starting a drush command from within a drupal installation working with a private mysql instance leads to the following error message:

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.

Database is addressed in settings.php with the following lines:

$databases['default']['default'] = array( 'driver' => 'mysql', 'database' => 'xxrecht', 'username' => 'xxrecht', 'password' => '...', 'host' => '159.xxx.151.15:29xx2', );

Any advice would be welcome.

Thanks,

Eric

asked 28 Mar '15, 00:58

Eric Wassink
124
accept rate: 0%

edited 29 Mar '15, 23:59

Can you update this Question to include your "settings.php" (minus confidential information)?

(28 Mar '15, 03:03) ryans ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×168
×63
×11
×7
×5

question asked: 28 Mar '15, 00:58

question was seen: 3,384 times

last updated: 29 Mar '15, 23:59

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM