Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

a hyphen in the database name causes installation failure


Reply

2 Posts   1262 Views

Avatar
Mora

24 January 2009 at 10:38am (Last edited: 24 January 2009 10:57am), Community Member, 2 Posts

Hi there,

I would love to install Silverstripe. Had no problems with Joomla, Drupal, Wp and stuff. But now due to a hyphen that is inside the database name (by default made by my provider) there is no way installing silverstripe. Everytime I Click on re-install, the hyphen magically disappears from my install.php form and - consequently - silverstripe script says that there is no b64787634mywebsite database. Sure, I wrote down b64787634-mywebsite.

Is this a bug or feature to kick ass to all who only have this f***ing Webhoster XL Packages for less than 29$ a month?

Do you know a solution?

Thanks in advance

Figured out that in the config-form.html there is a line like this:

<label for="mysql_database">MySQL database:</label>
                        <span class="middleColumn"><input id="mysql_database" class="text" type="text" name="mysql[database]" value="<?php echo $databaseConfig['database']; ?>" onchange="this.value = this.value.replace(/[^A-Za-z0-9_]+/g,'');" /></span>

But why do they do this replacing?

Joerg

Avatar
Mora

24 January 2009 at 11:10am Community Member, 2 Posts

OK solved it by myself by getting rid of that shit inside the "character scrutinizer " ...

God bless the DEL-button.

Maybe this will help another one out there.