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.

Archive /

Our old forums are still available as a read-only archive.

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

Database Contains Dashes


Reply


4 Posts   2358 Views

Avatar
mondy

10 Posts

27 December 2007 at 1:04pm

I have created a database for my SS installation, but my host's server creates my domain as follows...

mydomain_net_-_ss

I cannot change anything before the ss, as that is pre-determined by the server. no matter what I type for the database name, the server populates this mydomain_net_-_ and then whatever I type in as the database name.

The problem is when I get to the SS install page and enter the database name, the dash between the underscores disappears and then it tells me that the database does not match. It looks like this after I click on "Re-Check Requirements" - mydomain_net__ss

It seems that SS does not recognize dashes and my host server or MySQL host creates databases with dashes. Does anyone know how I can work around this?

Avatar
mondy

10 Posts

28 December 2007 at 12:54pm

Nevermind. I figured it out with the help of Simon. Thanks, Simon!

Avatar
Morello

Community Member, 2 Posts

22 January 2008 at 12:46pm

Would you care to share how you solved this issue as I have the same problem?

Thank you

Avatar
Morello

Community Member, 2 Posts

22 January 2008 at 2:07pm

Never mind.

I "fixed" it by hardcoding the database name into the install.php file in the section beginning at line 12:

// Load database config
if(isset($_REQUEST['mysql'])) {
   $databaseConfig = $_REQUEST['mysql'];
} else {
   $databaseConfig = array(
      "server" => "localhost",
      "username" => "root",
      "password" => "",
      "database" => "databasenamewithdashes--------here",
   );
}