I installed drush using composer following the instructions here: http://docs.drush.org/en/master/install/
When trying to run
drush cc all I get this error:
No Drupal site found, only 'drush' cache was cleared.[warning] 'all' cache was cleared. [success]
I added this line:
.bash_profile and restarted bash and MAMP. Still no luck. Any ideas?
This is my
Drupal version : 7.36 Site URI : http://default Database driver : mysql Database hostname : localhost Database port : Database username : root Database name : srod PHP executable : /usr/bin/php PHP configuration : PHP OS : Darwin Drush script : /Users/srod/.composer/vendor/drush/drush/drush.php Drush version : 7.0-dev Drush temp directory : /tmp Drush configuration : Drush alias files : Drupal root : /Applications/MAMP/htdocs/srodsite Site path : sites/default
I'm running it from Drupal project folder.
Edit the settings.php file of your drupal installation, and go to the database settings entry.
change the host line to:
'host' => php_sapi_name() == 'cli' ? '127.0.0.1' : 'localhost',
Curious to hear if that could help ...
I figured out that you will need a mysql server installed and included in path, even if you are using mysql from AWS RDS.
For people working on Windows, you need to verify that your PATH Variable for MYSQL is properly set. I had the problem when I had upgraded my WAMP.
Example like this :
If you're running inside Drupal root folder, there are two possibilities which may go wrong:
drush cannot find Drupal core files (you don't have
common.inc), check by:
find -maxdepth 2 -name index.php -o -name common.inc
Your PHP CLI doesn't have PDO extension (
php -m | grep pdo).