Loading...


Related Products


Date Published: February 10, 2022

Acquia Cloud Drush and Database Reference

Issue

Acquia Cloud Drush commands can be confusing when referencing an environment specific database. Luckily, the API infers from your command which environment the database is in.

Resolution

You might be tempted to add the environment to your database name:

drush @mysitegroup.test ac-database-instance-backup mysitegroupstg

Which will result in an error:

message : Resource not found
API status code 404

The 404 occurs because the API cannot find a database name match for "mysitegroupstg."

Instead, use the database name, which is the same across all environments. For example:

drush @mysitegroup.test ac-database-instance-backup mysitegroup

More Information

Acquia Cloud Drush

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation