[wp-hackers] hyphens to differentiate database names for WP in mysql

Cameron Hurd me at cameronhurd.com
Mon May 20 18:40:33 UTC 2013


But, there is that table_prefix variable to facilitate multiple wp installs in one db. Any plugin running queries is alreading prepending this to table names when running queries. According to the ol' codex, it says only numbers, letters and underscores - http://codex.wordpress.org/Editing_wp-config.php#table_prefix

As for the name of the actual db itself, I don't see why hyphens would be bad practice. I think it's just preference.

Any other thoughts?

--
Cameron Hurd::WebDeveloper
me at cameronhurd.com

On 2013-05-20, at 2:34 PM, Bearcat Şándor wrote:

> Folks,
> 
> I like to create my wordpress databases with hyphens such as wp-exetermusic
> and wp-mysite.  I have to escape them with backticks when creating them.
> 
> Is this a bad practice?
> Might some plugins choke on this?
> Are underscores or some other thing, better?
> 
> Thanks
> -- 
> Bearcat M. Şándor
> Feline Soul Systems LLC
> Voice: 872.CAT.SOUL (872.228.7685)
> Fax: 406.235.7070
> Jabber/xmpp/gtalk/email: bearcat at feline-soul.net
> MSN: bearcatsandor at hotmail.com
> Yahoo: bearcatsandor
> AIM: bearcatmsandor
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list