Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-07-2009
Member
 
Join Date: Apr 2008
Posts: 55
Help me with MySQL file permissions

Hi,

I am little bit unsure with the MySQL file permissions. If someone could please guide me with the MySQL file system & the permissions thing it will be really helpful.

Thanks in advance.
giorgos
Reply With Quote
  #2  
Old 31-07-2009
Member
 
Join Date: May 2008
Posts: 33
Re: Help me with MySQL file permissions

File System Permissions for the MySQL Directories

MySQL is an SQL based relational database management system (DBMS) that runs under a broad array of operating systems.

lock down the file permissions on the directories created by entering the following commands into a Command Prompt:

cacls C:\my.cnf /g administrators:f system:r "authenticated users":r

If you may get the following error message: The cacls command can only be run on disk drives that use the NTFS file system. Don't worry about it (for now). Skip all the cacls commands in the rest of our tutorial.

Enter each line below separately because some of them require user confirmation.

MySQL 5.0.x:

cacls M:\mysql50 /t /g administrators:f system:f mysql:c
cacls M:\mysql50\data\my.cnf /t /g administrators:f system:r
cacls "C:\program files\mysql50" /t /g administrators:f system:f mysql:r "authenticated users":r
cacls "C:\program files\mysql50\data" /t /g administrators:f

MySQL 4.1.x:

cacls M:\mysql41 /t /g administrators:f system:f mysql:c
cacls M:\mysql41\data\my.cnf /t /g administrators:f system:r
cacls "C:\program files\mysql41" /t /g administrators:f system:f mysql:r "authenticated users":r
cacls "C:\program files\mysql41\data" /t /g administrators:f
Reply With Quote
  #3  
Old 31-07-2009
Member
 
Join Date: May 2008
Posts: 24
Re: Help me with MySQL file permissions

Mysql Permission

Mysql Permission allows the user to connect to the database, Mysql checks and use that the particular username/ password and combination has the permission to connect. All user /host/password combination are listed in this table before any access can be granted.

To understand and grasp example we use the query show grants that grant the permission to all the user to access the listed table in database of local host. The password is specified in a encrypted format.

Query:-

Code:
mysql> show grants;
Reply With Quote
  #4  
Old 31-07-2009
Member
 
Join Date: Apr 2008
Posts: 55
Re: Help me with MySQL file permissions

Hey thanks for the prompt reply.

Ill definitely have a look at your suggestions.

Thanks once again.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Help me with MySQL file permissions"
Thread Thread Starter Forum Replies Last Post
How to use permissions in MySQL Ground 0 Software Development 4 08-12-2010 04:20 AM
MySQL 5 : VIEW and TRIGGER Permissions Samara Software Development 4 18-06-2010 04:17 AM
mysql config file in MySQL Netorious Software Development 4 18-03-2010 09:43 PM
Mysql Error : Can't connect to local mysql server through socket ' var lib mysql mysql.sock' 2 roshan45 Software Development 3 07-11-2009 09:36 PM
Administrator can't get file ownership or change file permissions Franseza Window 2000 Help 1 29-07-2007 08:01 PM


All times are GMT +5.5. The time now is 04:23 AM.