drush qc all --domain=14caracters.com
str_repeat() expects parameter 2 to be long, string given            [warning]
drush.inc:816
  '--domain' must be less than 16 characters long.
Bad parameters.  Try "drush help quickstart-create"                  [error]
An error occurred at function : drush_quickstart_create              [error]

could we more caratacters for domain parameter ?

PS: I have just installed quickstart, I love it, really awesome ! and it's really fast. maybe faster than my windows 7 :-)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MichaelCole’s picture

Status: Active » Closed (works as designed)

Hi heyyo,

Glad you like it!

The domain name is used as the database name, user, and password. The db user and/or name have to be less than 16 chars. They are kept the same so the quickstart-destroy command can find them to remove. So best to leave them the same.

That said, you can still get what you want if you edit the config manually. Create as site and edit /etc/hosts, and the "server" parameter in the apache file. Look in the "~websites/config" directory for these files. This will allow you to change the name to whatever you need. sudo apache2ctl restart to load the changes to apache files.

Good luck Heyyo!

Mike

rivimey’s picture

Component: Code » Image Build
Status: Closed (works as designed) » Needs review

Mike,

Just found QuickStart and it does seem really brilliant. However several of the sites I manage have domain names longer than 16 chars. It would be really useful to find a way round the limit in mysql, even if that meant that for affected sites it was necessary to specify --dbuser= as well as --domain= or alternatively have a separate "website name" that identifies the set of things separately from any one part.

Thanks for all your work,
Ruth

KLicheR’s picture

Status: Needs review » Patch (to be ported)
FileSize
1.21 KB

Hi,

I've patch it for my needs and want to share.
It need to be apply in "~/quickstart/drush".

If a domain name is more than 8 characters, I make a hash (sha1) with the domain and fill the variable "$domain_", which is use for the DB username, DB password and DB name, with the hash to make it 15 characters long.

The DB name will stay unique and can be retrieved for further deletion.

The only annoying things is that the name of the DB can be confusing in phpmyadmin so you better double check with your setting.php for the correct name before making manuel operation to the DB.

P.S.: I also replacing the "_" by "" in the domain cause it seem to make error with the email creation.

Chris Charlton’s picture

Issue tags: +database, +domain, +db, +vhost

Anything against a patch that add --flags that take in custom dbname/dbuser setting, so the domain can be longer?

I'm thinking we can sniff the $db connection string from Drupal settings.php to know which db to dump.

I haven't dug into the QS source yet, so I'm just spitballing here, but I plan to peek and try.

MichaelCole’s picture