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 name


Reply

6 Posts   1427 Views

Avatar
jackvans

15 August 2008 at 12:16am (Last edited: 15 August 2008 12:16am), Community Member, 2 Posts

Try to install SilverStripe. Everything is oke, except de name of de database: when I enter the name:
jackvans-nl, Silverstripe changes it in: jackvansnl. Problem!
Anyone a suggestion? Thanx!
Jack

Avatar
Hamish

15 August 2008 at 9:18am Community Member, 712 Posts

Generally it is a good idea not to include dashes in your database names - they're special characters that (in certain situations) require additional escaping. It's much more cross-platform friendly to use underscores.

Doesn't solve your problem, but it's possible that it's a limitation of SS or the database connectors and you might just need to rename your dbs.

Avatar
jackvans

28 August 2008 at 7:26pm Community Member, 2 Posts

The "-" in the database name is not my choice. I'm afraid I can't change the name. I hoped there was some kind of a patch, as there is for Joomla: Joomla 1.5.2 installer patch.

Avatar
cumquat

11 September 2008 at 7:15pm Community Member, 198 Posts

Hi there, just to jump in on this thread I'm having the same problem, my provider automatically adds it's server name to the front of my databases,e.g. web170-databasename
I'm a bit new at the whole php thing and was wondering if there is just a part of the install.php that can be commented out to prevent it trying to change the name to web170databasename.

regards

Mick

Avatar
Fuzz10

11 September 2008 at 7:32pm Community Member, 787 Posts

Did you search the forum ?

http://www.silverstripe.com/site-builders-forum/flat/18154

Avatar
cumquat

11 September 2008 at 7:32pm Community Member, 198 Posts

I was just about to cancel my last post but you beat me to it :o)
Thanks for that anyway.

Mick