Permission to create DB

This is a discussion on Permission to create DB within the MySQL Database forums, part of the Database Forums category; Hallo, I use phpMyAdmin (most recent version) to adminstrate an MySQL 5.0 server. I have created an user wuhr ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-25-2007
Florian Lindner
 
Posts: n/a
Default Permission to create DB

Hallo,
I use phpMyAdmin (most recent version) to adminstrate an MySQL 5.0 server.

I have created an user wuhr who permission for the DB wuhr\_%:
SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY
TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EXECUTE

Now I'm suprised that the user is permitted to create new databases. CREATE
gives according to phpMyAdmin the permission to create tables and DBs. Now
I want to the user to be able to create tables but not DBs.

How can I do that?

Thanks,

Florian
Reply With Quote
  #2 (permalink)  
Old 10-25-2007
Paul Lautman
 
Posts: n/a
Default Re: Permission to create DB

Florian Lindner wrote:
> Hallo,
> I use phpMyAdmin (most recent version) to adminstrate an MySQL 5.0
> server.
>
> I have created an user wuhr who permission for the DB wuhr\_%:
> SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
> TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER
> ROUTINE, EXECUTE
>
> Now I'm suprised that the user is permitted to create new databases.
> CREATE gives according to phpMyAdmin the permission to create tables
> and DBs. Now I want to the user to be able to create tables but not
> DBs.
>
> How can I do that?
>
> Thanks,
>
> Florian


Set the user's scope to be a particular database (or set of databases).


Reply With Quote
  #3 (permalink)  
Old 10-26-2007
Florian Lindner
 
Posts: n/a
Default Re: Permission to create DB

Paul Lautman wrote:

> Florian Lindner wrote:
>> Hallo,
>> I use phpMyAdmin (most recent version) to adminstrate an MySQL 5.0
>> server.
>>
>> I have created an user wuhr who permission for the DB wuhr\_%:
>> SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
>> TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER
>> ROUTINE, EXECUTE
>>
>> Now I'm suprised that the user is permitted to create new databases.
>> CREATE gives according to phpMyAdmin the permission to create tables
>> and DBs. Now I want to the user to be able to create tables but not
>> DBs.
>>
>> How can I do that?
>>
>> Thanks,
>>
>> Florian

>
> Set the user's scope to be a particular database (or set of databases).


Sorry, I don't really can follow you. What's scope in this context?

Thanks for details,

Florian
Reply With Quote
  #4 (permalink)  
Old 10-26-2007
Captain Paralytic
 
Posts: n/a
Default Re: Permission to create DB

On 26 Oct, 10:26, Florian Lindner <Florian.Lind...@xgm.de> wrote:
> Paul Lautman wrote:
> > Florian Lindner wrote:
> >> Hallo,
> >> I use phpMyAdmin (most recent version) to adminstrate an MySQL 5.0
> >> server.

>
> >> I have created an user wuhr who permission for the DB wuhr\_%:
> >> SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
> >> TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER
> >> ROUTINE, EXECUTE

>
> >> Now I'm suprised that the user is permitted to create new databases.
> >> CREATE gives according to phpMyAdmin the permission to create tables
> >> and DBs. Now I want to the user to be able to create tables but not
> >> DBs.

>
> >> How can I do that?

>
> >> Thanks,

>
> >> Florian

>
> > Set the user's scope to be a particular database (or set of databases).

>
> Sorry, I don't really can follow you. What's scope in this context?
>
> Thanks for details,
>
> Florian- Hide quoted text -
>
> - Show quoted text -


The scope within which the user may operate. As documented in the
manual.

Reply With Quote
  #5 (permalink)  
Old 10-26-2007
Florian Lindner
 
Posts: n/a
Default Re: Permission to create DB

Captain Paralytic wrote:

> On 26 Oct, 10:26, Florian Lindner <Florian.Lind...@xgm.de> wrote:
>> Paul Lautman wrote:
>> > Florian Lindner wrote:
>> >> Hallo,
>> >> I use phpMyAdmin (most recent version) to adminstrate an MySQL 5.0
>> >> server.

>>
>> >> I have created an user wuhr who permission for the DB wuhr\_%:
>> >> SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
>> >> TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER
>> >> ROUTINE, EXECUTE

>>
>> >> Now I'm suprised that the user is permitted to create new databases.
>> >> CREATE gives according to phpMyAdmin the permission to create tables
>> >> and DBs. Now I want to the user to be able to create tables but not
>> >> DBs.

>>
>> >> How can I do that?

>>
>> >> Thanks,

>>
>> >> Florian

>>
>> > Set the user's scope to be a particular database (or set of databases).

>>
>> Sorry, I don't really can follow you. What's scope in this context?
>>
>> Thanks for details,
>>
>> Florian- Hide quoted text -
>>
>> - Show quoted text -

>
> The scope within which the user may operate. As documented in the
> manual.


Is it possible that you give me an pointer where it's to find in the manual?

Thanks,

Florian
Reply With Quote
  #6 (permalink)  
Old 10-26-2007
Gordon Burditt
 
Posts: n/a
Default Re: Permission to create DB

>>> >> I have created an user wuhr who permission for the DB wuhr\_%:
>>> >> SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
>>> >> TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER
>>> >> ROUTINE, EXECUTE
>>>
>>> >> Now I'm suprised that the user is permitted to create new databases.
>>> >> CREATE gives according to phpMyAdmin the permission to create tables
>>> >> and DBs. Now I want to the user to be able to create tables but not
>>> >> DBs.
>>>
>>> >> How can I do that?
>>>
>>> > Set the user's scope to be a particular database (or set of databases).
>>>
>>> Sorry, I don't really can follow you. What's scope in this context?
>>>
>>> Thanks for details,
>>>

>> The scope within which the user may operate. As documented in the
>> manual.

>
>Is it possible that you give me an pointer where it's to find in the manual?


User privileges have scope. A privilege can apply globally, to a
database, or to specific tables, depending on the privilege (It
does not make sense to grant "SHUTDOWN" privilege on a specific
table only) and how you GRANTed it. For example, you could grant
CREATE only on a specific database. Look at documentation for the
GRANT command for details.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0