[ale] [Slightly OT] Simple(?) MySQL question
James Sumners
james.sumners at gmail.com
Mon Jun 13 09:29:40 EDT 2005
GRANT ALL PRIVILEGES ON fd0man_%.* TO fd0man at somehost IDENTIFIED BY 'password';
I imagine that would work. Also, you don't have to subscribe to a new
list to ask such a question. The folks in #mysql on freenode are
usually very helpful.
On 6/13/05, Michael B. Trausch <fd0man at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> Having searched about, before subscribing to a new specialty list to ask
> what I rather suspect to be a fairly stupid question, I'm going to ask
> it here: How in the *world* do you get it so that a MySQL user can only
> see, create, manipulate databases that are their MySQL username, an
> underscore, and their database name? I've seen this in use in places
> before, where if my MySQL username is fd0man, the only databases I
> create have to be in my own "namespace", e.g.:
>
> fd0man_webusers
> fd0man_phonedb
>
> Or whatever. I would then have full permissions to those databases, and
> zero permissions to anything else. I thought the solution to this
> problem would be to grant full permissions on 'fd0man_%' and have no
> permission to the MySQL database 'mysql' or any other databases on the
> system (e.g., 'mtrausch_%', for example). However, I can still login to
> something like phpMyAdmin and see everything. I only want to see what I
> am allowed to see.
>
> I know it's possible; the question really just is, how? And why doesn't
> simple searches from Google yield me a result? Perhaps I'm just too
> stupid to figure out the keywords... I'm still working on that, though.
>
> - Mike
>
> - --
> Michael B. Trausch fd0man at gmail.com
> Web: http://fd0man.theunixplace.com/ Jabber: mtrausch at jabber.com
> Phone: +1-(678)-522-7934 FAX (US Only): 1-866-806-4647
> =======================================================================
> Do you have PGP or GPG? Key at pgp.mit.edu, Please Encrypt E-Mail!
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCrYQ4PXInbkqM7nwRAw9HAJ0RW4/lcLRa+UI0aEB4vvoQBILt9QCgn2OU
> XlQep1NCzlsJeVK198YAGVY=
> =1IMz
> -----END PGP SIGNATURE-----
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
James Sumners
http://james.roomfullofmirrors.com/
"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."
Missionaria Protectiva, Text QIV (decto)
CH:D 59
More information about the Ale
mailing list