Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Database Contains Dashes
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Database Contains Dashes | 1147 Views |
-
Database Contains Dashes

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?
-
Re: Database Contains Dashes

28 December 2007 at 12:54pm
Nevermind. I figured it out with the help of Simon. Thanks, Simon!
-
Re: Database Contains Dashes

22 January 2008 at 12:46pm
Would you care to share how you solved this issue as I have the same problem?
Thank you
-
Re: Database Contains Dashes

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",
);
}
| 1147 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: madmaurice, eddieconnecti, Joshuarr, Euphemismus, dotperinch
Welcome to our latest member: svenmagnus

