LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2006, 12:38 PM   #1
rustyz82
Member
 
Registered: May 2004
Posts: 69

Rep: Reputation: 15
Allowing the creation of MYSQL databases by a user


I was wondering if its possible on a Cent OS system to grant a non privledged user the ability to create mysql databases, add himself to the databases he has created and manipulate them via the shell.
Without them having the ability to modify the existing databases on the system. Is there a way to do this?
 
Old 06-25-2006, 12:46 PM   #2
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Quote:
Originally Posted by rustyz82
I was wondering if its possible on a Cent OS system to grant a non privledged user the ability to create mysql databases, add himself to the databases he has created and manipulate them via the shell.
Without them having the ability to modify the existing databases on the system. Is there a way to do this?
Yes sir,
http://dev.mysql.com/doc/refman/5.0/...anagement.html
 
Old 06-25-2006, 01:25 PM   #3
rustyz82
Member
 
Registered: May 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Its on a shared hosting server.. does mysql automaticaly prefix a database name with the users userid? I know when cpanel does it, it does do that.
 
Old 06-25-2006, 02:49 PM   #4
rustyz82
Member
 
Registered: May 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Also I am using MySQL 4.1.19 right now, is it still possible or would I need to upgrade to mysql 5? I ask because the documentation you linked is for MySQL 5.
 
Old 06-25-2006, 09:21 PM   #5
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
If you do it by hand you'll need to name the database explicitly or write a shell script to do it for you, e.g. CREATE DATABASE id_dbname;

It's the same as far as the docs go. There's a link to the 4 version docs on the little toolbar on the site.
 
Old 06-26-2006, 01:11 AM   #6
rustyz82
Member
 
Registered: May 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Ok then thats not what i'm looking for. I want the user to be able to log into his shell account, type mysql -u=username -p=password and from the mysql prompt create and work with his own databases, without endangering any of the other databases on teh server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving MySQL databases. lord-fu *BSD 1 04-05-2006 12:28 PM
Restoring Mysql Databases davethegenius Linux - Software 2 08-05-2005 02:01 PM
Comparing two MySQL Databases WeNdeL Linux - Software 1 09-30-2003 03:47 PM
restoring mysql databases? and mysql permissions... armegeden Linux - Software 0 03-13-2003 11:04 AM
mysql databases k3v0 Linux - Software 2 12-03-2002 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration