Naming Conventions

Is it okay to start a Database name with an underscore?

For example…

_MyDatabase

TomTees

if you’re asking whether mysql will object to it, i will leave it up to you to test it

here ya go, just run this –

CREATE DATABASE _StartsWithUnderscore

so, what did you get? :slight_smile:

but if you’re asking whether it’s a good convention or not, let me ask you – why would you want to do that?

Just because something works doesn’t mean it won’t blow up later.

(Try draining the oil out of your car. Just because you can start it up and make it out of your driveway or to the end of the block doesn’t mean you’d make it to the store and back…) :wink:

but if you’re asking whether it’s a good convention or not, let me ask you – why would you want to do that?

Because I have several test databases in phpMyAdmin, and I wanted to sort this new database to the top for organizational purposes. (I’m an organization freak.)

I would not do that for a production database, but it would be easier on my eyes during development.

TomTees

ah, okay, well, in that case, go right ahead :slight_smile:

p.s. for your future reference, i do not have a car, i walk to the store

Cool.

p.s. for your future reference, i do not have a car, i walk to the store

Then for your future reference, you shouldn’t need to any motor oil in order to go to the store! :smiley:

(Unless, of course, you’ve ever watched the movie “Police Academy”…)

TomTees