Set MySQL security permissions under Windows

Source: Internet
Author: User
Tags mysql database

Note: The content of this article involves modifying NTFS disk permissions and setting security policies, and make sure that you understand the possible consequences of the operation before you make any changes.
The permissions mentioned in the article are those that are attached to the original permission.

[Modify step]
1. Create a user
Create a user named Mysqlusr, set a random password, the best length of password
not less than 20 digits.

2. Set the user's identity
Add MYSQLUSR users to the Guests group and remove any other groups.

3. Set disk permissions
Suppose MySQL is installed in the following directory
D:hostingsystemmysql

Assume that the MySQL database is stored in the following directory
D:hostingmysqldb

Suppose that the MySQL service run is modified to MYSQLUSR

Directory permissions are set as follows
D:hostingsystemmysql
     mysqlusr
          Read and run the
         List folder directory
         Read

D:hostingsystemmysqltmpdir
      MYSQLUSR
         Modify
          Read and run the
         List folder directory
          Read
         write

D:hOstingmysqldb
     mysqlusr
         Modify
         Read and run
         List Folder directory
         read
          Write

4. Modify MySQL's corresponding configuration
modify the MySQL directory of My.ini
in which add a row, the following
Tmpdir=d:/hosting/system/mysql/tmpdir
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.