I've been reading around similar threads… this is after having installed a brand new site. I want to verify I can get all the Drush commands working for future use, even though I do actually already have the latest version of core (8.1.9) having finally downloaded the latest version of Dev Desktop (the March 2016 one is still linked from one URL)
Dev Desktop 2 (5 Sep 2016 build)
$ drush --uri=http://drupaldev.dd:8083 pm-update
fails with the usual "Command pm-update needs a higher bootstrap level to run"
… "Drush was not able to start (bootstrap) the Drupal database." etc. etc.
$ drush --uri=drupaldev.dd sql-connect
mysql --user=drupaluser --password= --database=drupaldev --host=127.0.0.1 --port=33067
The credentials it gives are valid and I can connect to and alter the DB.
$ which drush
(just to verify I haven't got two copies installed)
$ /Applications/DevDesktop/drush/drush --version
Drush Version : 8.0.5
What else should I try?
This is on a Mac, 10.11.6, running PHP 7.0.4 (Acquia appears to have ovewritten 7.0.12 which I previously had via homebrew)