LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-28-2012, 02:03 PM   #1
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Rep: Reputation: 0
Root MySQL


So when it comes down to Linux in general I know it's not safe to use root for anything unless you have too. So my question is because I don't see how it will work in the same way (Like MySQL I don't see you being like oh well only if you can't do this do this instead) in MySQL. So should i use root in MySQL cause I know alot of programs they need one user and I'm worried if I make a normal user if i don't have access to something I can't do what i need I'm just beginning MySQL and all I need it for is for my forum to interact with phpBB and some other things later on when I get it all setup. Is there anything you can teach me about my situation here or work arounds or anything. Mainly is it safe to use root in mysql accounts or no? how can i make sure that if i'm not using root that if only root has access i can still do it safely.
 
Old 10-28-2012, 02:19 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
The privilege model on MySQL is really very simple and straight forward. every application should have its own user account, which may well have full access to create and delete data but not in other databases or other non-db related code. Only quirk (as I see it) is that you grant privileges to the high level commands, e.g. CREATE, DROP etc. So you can't actually create a user who can create a table in their own database who can't create a new database too, same for a drop - if you an drop a table, you can drop the db too...
 
  


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
[SOLVED] mysql root password yewint Linux - Newbie 17 06-22-2010 11:18 AM
mysql - can't access mysql database as root yogaboy Linux - Software 5 12-28-2006 06:58 AM
MySQL root access. ToothlessRebel Linux - Software 1 11-14-2005 06:35 PM
Mysql Root Login SilentK Linux - Newbie 11 08-14-2004 12:54 PM
MySQL root pass tommytomato Linux - Newbie 0 02-02-2004 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:43 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