Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Admin "ONE" MySQL database ? [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
heinzg
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2004
Posts: 96
Location: In the EU

PostPosted: Tue Dec 20, 2005 5:13 pm    Post subject: Admin "ONE" MySQL database ? [SOLVED] Reply with quote

Hi there All,

Can someone give me a tip!

I have a MySQL server and numerous DBs on it....
I would like to give a mate of mine access to just one DB, via some PHP site.
He should have all rights to do what he wants on that one DB.

I.E. I have a DB Server, DB name, and DB passwd.

Yes i am a tit when it comes to MySQL.... I think i should try "phpmysql" but the config is so overwhelming!

Can some one help me out with a simple config example howto to give full access to one DB running on the MySQL server

Cheers
Heinzg


Last edited by heinzg on Wed Apr 19, 2006 7:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
buzzin
Apprentice
Apprentice


Joined: 17 Oct 2003
Posts: 264
Location: St. Albans, UK.

PostPosted: Tue Dec 20, 2005 5:30 pm    Post subject: Reply with quote

Hi,

There are many ways to admin a mysql database, here are just a few;

- install 'dev-db/mysql-administrator' and use this gui tool. (But this seems to be masked atm.)
- install 'webmin' (no config required) and use the mysql admin module to configure your server
- find a copy of 'mysqlcc' gui tool and use this to admin the database
- Use sql syntax to add a user(check mysql.org)

I'd say if you cant get mysql-administrator to run, then webmin is the easiest way to get what you want. It will let you do this and so much more and you'll prolly endup using it for more than just admin'ing your db ;)

Hope that helps a little.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Tue Dec 20, 2005 5:39 pm    Post subject: Reply with quote

mysql -u root -p
grant all on database.* to 'username'@'localhost' identified by 'password';
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
heinzg
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2004
Posts: 96
Location: In the EU

PostPosted: Tue Dec 20, 2005 6:00 pm    Post subject: Reply with quote

Thanx for the comments,

the problem I have here is that i am really limited to what I can install on this box. :-(

I know webmin... but can't install it ^^^

What is needed is some sort of web interface cgi or php, where I can give the mate of mine access via .htaccess to the "Web DB Admin GUI" of some sort...

Is there some sort of php script to do this with?

I only find scripts that can do everything, including the dishes! and more,
but not just a simple interface to admin one db.


I don't wana give my dodgie mate ssh & telnet to my box :-)


Heinzg
Back to top
View user's profile Send private message
buzzin
Apprentice
Apprentice


Joined: 17 Oct 2003
Posts: 264
Location: St. Albans, UK.

PostPosted: Tue Dec 20, 2005 11:43 pm    Post subject: Reply with quote

if you do what splooge said and then make your mate use mysql-administrator, then he will be able to connect and work ONLY on that db.
Back to top
View user's profile Send private message
heinzg
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2004
Posts: 96
Location: In the EU

PostPosted: Wed Dec 21, 2005 8:11 am    Post subject: Reply with quote

thanx working now [SOLVED]
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