File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes How to get user permission in MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to get user permission in MySQL" Watch "How to get user permission in MySQL" New topic
Author

How to get user permission in MySQL

Adriano Bellavita
Ranch Hand

Joined: Mar 11, 2010
Posts: 37
Hi all,

the title totally shows my problem:

I have created a GUI that allows users to connect to a db through username and password.

Now I want to know users permissions (insert rescords and/or read records) in order to modify in the right way my GUI.

How could I get that?

TY and BR,

Adriano.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Are you talking about database permissions or user application permissions. Please be more specific about what you are trying to do here.


My Blog: Down Home Country Coding with Scott Selikoff
Adriano Bellavita
Ranch Hand

Joined: Mar 11, 2010
Posts: 37
I'm talking about db permissions.

For example, some users could insert, read and modify records. Other one could only read records.

So I have to know how can I get these informations: mysql is installed on the same host where client runs. So there is not a real server side: it's all on the same host.

TY and BR,

Adriano.
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 877
    
    5
There might be pseudo-tables to support this type of query. It is not a Java-related question but pertinent to MySQL.

Googling on "mysql pseudo-table permission" yielded -among others-
this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get user permission in MySQL