Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpmyadmin e permessi utenti database
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
paccio84
n00b
n00b


Joined: 13 Apr 2007
Posts: 37

PostPosted: Wed May 30, 2007 5:28 am    Post subject: phpmyadmin e permessi utenti database Reply with quote

Ciao a tutti,
ho installato e configurato phpmyadmin sulla mia gentoo box, però creando gli utenti del database mysql vorrei che essi avesserò la visione solo del proprio database e non anche quella degli altri.

Cioè se creo un utente pippo, esso può fare quello che vuole solo del suo database pippo_db e non di altri db presenti in mysql.

Ho provato a cercare una soluzione, ma non ho trovato spiegazioni chiare a riguardo. Con phpmyadmin ( almeno di default ) sembra che ogni utente sia proprietario di tutti i database!


Ringrazio per qualsiasi suggerimento

Saluti
Federico
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Wed May 30, 2007 9:23 am    Post subject: Reply with quote

di solito quando creo un utente tramite phpmyadmin uso creare un utente senza permessi
poi do i permessi che servono all'utente creato, esclusivamente sul db che gli deve appartenere
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
paccio84
n00b
n00b


Joined: 13 Apr 2007
Posts: 37

PostPosted: Wed May 30, 2007 10:04 am    Post subject: Reply with quote

si, ho fatto come dici tu, ma anche se ad esempio do i permessi sul database dell'utente questi permessi sono diffusi anche sui altri db presenti e non suoi.

Boh proverò di nuovo

Cma grazie 1000 per la risposta :)

Ciao
Back to top
View user's profile Send private message
102376
l33t
l33t


Joined: 19 Mar 2005
Posts: 608

PostPosted: Wed May 30, 2007 8:27 pm    Post subject: Reply with quote

devi usare grant per fare quello che dici

Code:
GRANT ALL ON provaDB.* TO utente@localhost IDENTIFIED BY 'password';


crei un utente che vede solo il database provaDB con password

quindi quando accedi tramite quel utente vedrai solo provaDB
Back to top
View user's profile Send private message
paccio84
n00b
n00b


Joined: 13 Apr 2007
Posts: 37

PostPosted: Wed May 30, 2007 8:50 pm    Post subject: Reply with quote

grazie tante, mi hai illuminato la via! :D

Ciaoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum