1

Drush sql-sanitize doesn't work on my test install.

drush @pfdevd6mg sql-sanitize --sanitize-password=newpassword
PHP Warning:  Module 'curl' already loaded in Unknown on line 0

The following operations will be done on the target database:
 * Reset passwords and email addresses in users table
 * Truncate Drupal's sessions table

Do you really want to sanitize the current database? (y/n): y
Sanitize query failed.

does alias aren't possible ?

EDIT: Using Drush 8

ERROR 1146 (42S02) at line 1: Table 'provence-formation_pfdevd6mg.users' doesn't exist
Sanitize query failed.
  • What version of Drush do you have? You can use the --debug flag so drush gives you more information. – sanzante Mar 7 '17 at 10:46
  • By the way, alias should be available for this command. – sanzante Mar 7 '17 at 10:48
1

Quote from Moshe Weitzman, main drush developer

Database prefixing is no longer supported by Drush. Its a relic from a prior era.

March, 2017.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.