Click here to get back home

Same database name

 HomeNewsGroups | Search | About
 mailing.database.mysql    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Same database name javier.ortega 10-27-2006
Get Chitika Premium
Posted by javier.ortega on October 27, 2006, 3:10 pm
Please log in for more thread options
hello,

We are running mysql 4.1.18

Is there a way to prevent users from creating the same database name?
for example
our name schema goes like: mysql_1234, mysql_32143, mysql_....
But we found out that some one could create MYSQL_1234 while mysql_1234
already exists.
I guess what we need to know is that if there is away for mysql to not
allow same names even though its different case characters.

thanks,
Javier.


Posted by lark on October 30, 2006, 10:06 am
Please log in for more thread options
the case insensitive directive is in your .cnf or .ini file. change it
so that it wouldn't matter to the server whether it's upper or lower case.

javier.ortega@gmail.com wrote:
> hello,
>
> We are running mysql 4.1.18
>
> Is there a way to prevent users from creating the same database name?
> for example
> our name schema goes like: mysql_1234, mysql_32143, mysql_....
> But we found out that some one could create MYSQL_1234 while mysql_1234
> already exists.
> I guess what we need to know is that if there is away for mysql to not
> allow same names even though its different case characters.
>
> thanks,
> Javier.
>

Posted by javier.ortega on October 30, 2006, 12:59 pm
Please log in for more thread options
Hey lark,

I guess what I'm trying to say, is that I want to know if its possible
to prevent same name databases.





lark wrote:
> the case insensitive directive is in your .cnf or .ini file. change it
> so that it wouldn't matter to the server whether it's upper or lower case.
>
> javier.ortega@gmail.com wrote:
> > hello,
> >
> > We are running mysql 4.1.18
> >
> > Is there a way to prevent users from creating the same database name?
> > for example
> > our name schema goes like: mysql_1234, mysql_32143, mysql_....
> > But we found out that some one could create MYSQL_1234 while mysql_1234
> > already exists.
> > I guess what we need to know is that if there is away for mysql to not
> > allow same names even though its different case characters.
> >
> > thanks,
> > Javier.
> >


Posted by Jeff North on October 30, 2006, 3:30 pm
Please log in for more thread options
On 30 Oct 2006 09:59:46 -0800, in mailing.database.mysql
javier.ortega@gmail.com

>| Hey lark,
>|
>| I guess what I'm trying to say, is that I want to know if its possible
>| to prevent same name databases.

SHOW DATABASES [LIKE 'pattern']


>| lark wrote:
>| > the case insensitive directive is in your .cnf or .ini file. change it
>| > so that it wouldn't matter to the server whether it's upper or lower case.
>| >
>| > javier.ortega@gmail.com wrote:
>| > > hello,
>| > >
>| > > We are running mysql 4.1.18
>| > >
>| > > Is there a way to prevent users from creating the same database name?
>| > > for example
>| > > our name schema goes like: mysql_1234, mysql_32143, mysql_....
>| > > But we found out that some one could create MYSQL_1234 while mysql_1234
>| > > already exists.
>| > > I guess what we need to know is that if there is away for mysql to not
>| > > allow same names even though its different case characters.
>| > >
>| > > thanks,
>| > > Javier.
>| > >
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------

Similar ThreadsPosted
converting ms access database to mysql 5 database March 13, 2006, 5:33 pm
Two way syncronizing with a website database with a local database February 4, 2007, 4:34 pm
how to convert .dbf database to mysql database May 13, 2007, 7:09 am
I need to move column field values from one database table to another database table January 27, 2006, 1:15 pm
Same database name October 27, 2006, 3:32 pm
Same database name October 27, 2006, 3:38 pm
Same database name October 27, 2006, 8:09 pm
Alter DATABASE June 3, 2005, 11:01 am
database backup - how to? July 2, 2005, 12:55 am
database syncing August 1, 2005, 9:06 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap