Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpmyadmin and mysql users (logging in) [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri Feb 15, 2008 5:59 am    Post subject: phpmyadmin and mysql users (logging in) [solved] Reply with quote

got phpmyadmin installed and working, and i also created another db and user... using the mysql CLI, the user can access their db, but not via phpmyadmin... it won't even let them log in... i'm thinking it's some sort of permissions thing, any ideas?

thanks

edit: solved it, my own dumbass fault... :lol:

turns out that % as a hostmask doesn't include localhost.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Tue Feb 19, 2008 12:36 pm    Post subject: Reply with quote

Bunder, that permissions should I enable (or disable) to ensure that each mysql user only has access to his/her databases when they log into phpmyadmin?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Tue Feb 19, 2008 1:46 pm    Post subject: Reply with quote

lets see here...

all but grant on their database... they'll be able to see information_schema, but only things relevant to their user.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Tue Feb 19, 2008 1:51 pm    Post subject: Reply with quote

This is what I thought originally. They can see information_schema, but not the two databases that I have granted them access to.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Tue Feb 19, 2008 1:54 pm    Post subject: Reply with quote

Have not granted them anything within 'global privileges.'
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Tue Feb 19, 2008 1:58 pm    Post subject: Reply with quote

just usage. :?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Tue Feb 19, 2008 2:04 pm    Post subject: Reply with quote

The only privilege he has is 'USAGE' he has not anything else.

What I am trying to do is to enable my users to each have access to their own databases. I want them to be able to create, drop and fully administer their OWN databases, but have nothing to do with anyone else.

Can this be done?
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Feb 20, 2008 5:33 am    Post subject: Reply with quote

Sorted!

The original user was created within Mysql prior to the installation of phpMyAdmin, so I deleted the user and created it within Php, all OK now. Have logged on into the account and the only database showing is the one to which I have assigned permissions to.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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