Log in

View Full Version : Quick MySQL Command Question


GreatSageCorban
04-26-2004, 06:41 AM
I'm trying to figure out how to check MySQL permissions on different users. (self made, root, ect. ect.) What's the command to check permissions, and/or delete an additional username. Thanks. :)

mikenune
04-26-2004, 09:35 AM
There's no easy way to do it.

I know I'm starting to sound like a broken record, but if you have a Web Server installed on your computer (such as IIS/PWS or Apache's HTTPd) then I'd strongly reccommend setting up PHPMyAdmin (from http://www.phpmyadmin.org/, you'll need PHP (http://www.php.net/) first :P). If you have that set up then you can just click on the "Permissions" link for an easy view.

If you don't want to go that route you'll have to come up with an effective SQL query. I don't know how to do it though since it requires looking at 4 tables to get all the info you need.

Derision
04-26-2004, 10:17 AM
I'm trying to figure out how to check MySQL permissions on different users. (self made, root, ect. ect.) What's the command to check permissions, and/or delete an additional username. Thanks. :)

Here is a good introduction to mysql permissions:

http://www.databasejournal.com/features/mysql/article.php/3311731

type 'use mysql' before issuing the example commands that they give in that article.

GreatSageCorban
04-26-2004, 10:37 AM
Thanks both of you. :o That link is going to be very useful, if I run into additional problems I will post here again. :)