Results 1 to 4 of 4

Thread: Help me with MySQL file permissions

  1. #1
    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

  2. #2
    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

  3. #3
    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;

  4. #4
    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.

Similar Threads

  1. How to use permissions in MySQL
    By Ground 0 in forum Software Development
    Replies: 4
    Last Post: 08-12-2010, 04:20 AM
  2. MySQL 5 : VIEW and TRIGGER Permissions
    By Samara in forum Software Development
    Replies: 4
    Last Post: 18-06-2010, 04:17 AM
  3. mysql config file in MySQL
    By Netorious in forum Software Development
    Replies: 4
    Last Post: 18-03-2010, 09:43 PM
  4. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  5. Replies: 1
    Last Post: 29-07-2007, 08:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,715,082,237.08784 seconds with 17 queries