It should be possible to create a drupal site with a domain name "test-page.com".
At the moment a "dash" is not allowed when creating the page.

Terminal output:

drush quickstart-create all --domain=test-page.com
[OK]
Creating dns config (add test-page.com to /etc/hosts) ... [OK]
... done. [OK]
Creating database: test-page_com [OK]
Command failed: [error]
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for
the right syntax to use near '-page_come@localhost IDENTIFIED BY 'test-page_com' WITH MAX_QUERIES_PER_HOUR 0 ' at line 1

Comments

Sean Buscay’s picture

Hello frodus. I'm able to repeat your issue.

It's the hyphen in the URL. Do you need it for local dev work?

Change the command to:

drush quickstart-create all --domain=testpage.com

And it will work.

If you have to have the hyphen then try adding:

$defaults['domain_'] = $domain_ = str_replace('-','_',$options['domain']);

after:

$defaults['domain_'] = $domain_ = str_replace('.','_',$options['domain']);

Around line: 171 in quickstart.drush.inc

Chris Charlton’s picture

Title: drush quickstart-create all --domain=test-page.com » Hyphen support: drush quickstart-create all --domain=test-page.com

I was bit by this not knowing hyphens were an issue in QC right now. I figured we can strip out the hyphen where it'll fail, like MySQL (because dbname/dbuser can't use that character). I see some code is above, so I'll try to supply something more complete to merge; love to get the QC command support hyphens.