Score:-2

I am unable to run "drush site-install" without getting errors

us flag

When I open Terminal on the david/Sites/animals directory, and I run drush site-install --db-url=mysql://david:root@localhost:3306/animals, the get the following error.

In SiteInstallCommands.php line 152: Drush was unable to drop all tables because mysql was not found, and therefore Drupal threw an AlreadyInstalledException. Ensure mysql is available in your PATH.

Did I write the correct command?

leymannx avatar
ne flag
This one helped me a lot back then when I used MAMP: https://www.drupal.org/node/1651282#comment-12366073. But honestly, drop MAMP. Use DDEV, Lando or Docksal instead. I use DDEV. Drush already in there.
Score:2
cm flag

The solution is part of the error message. Ensure mysql is available in your PATH. The command mysql is included in MAMP. You just need to add it the PATH environmental variable.

There are many, many post about this - see for example https://stackoverflow.com/questions/2684347/mac-os-x-mamp-how-to-run-mysql-without-having-to-type-in-the-full-path

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.