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
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
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
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;
Hey thanks for the prompt reply.
Ill definitely have a look at your suggestions.
Thanks once again.
Bookmarks