Jump to content

new user DB access


rtpmatt

Recommended Posts

someone gave me the tremendous mysql line:

 

GRANT ALL ON friends_db.* TO my_friend IDENTIFIED BY 'a password';

 

a while back. I am wondering if there is an easy way to have this run every time i create a new user on my server?  So that each time i create a user they get their own (and only their own) DB. Thanks

 

-matt

Link to comment
Share on other sites

I suppose i deserve that, i really don't do it much...and i suppose i should just do it by hand.  Really though, every once in a while i have to add someone new, and i would just like to be able to say they can use a DB.  That being said, learning how to do such a thing in linux wont hurt me, I do enjoy learning it the bit by bit, wish i knew it like i did win.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.