Configure MySQL security permissions in Windows

Source: Internet
Author: User
Note: The content in this article involves modifying NTFS hard drive permissions and configuring security policies. Please make sure that you understand the possible consequences of the operation before performing any modifications. All the permissions mentioned in this document are attached to the original permissions. [Modification steps] 1. Create a user named mysqlusr and configure a random password. The password length is the best.

Note: The content in this article involves modifying NTFS hard drive permissions and configuring security policies. Please make sure that you understand the possible consequences of the operation before performing any modifications. All the permissions mentioned in this document are attached to the original permissions. [Modification steps] 1. Create a user named mysqlusr and configure a random password. The password length is the best.


Note: The content in this article involves modifying NTFS hard drive permissions and configuring security policies. Please make sure that you understand the possible consequences of the operation before performing any modifications.
All the permissions mentioned in this document are attached to the original permissions.
[Modification steps]
1. Create a user
Create a user named mysqlusr and configure a random password. The password length is the best.
No less than 20 characters.
2. Configure the user's identity
Add the mysqlusr user to the Guests group and remove any other group.
3. Configure hard disk Permissions
Assume that MySQL is installed in the following directory:
D: \ hosting \ system \ mysql \
Assume that MySQL Data Inventory is stored in the following directory:
D: \ hosting \ MySQLDB \
Assume that the MySQL service provider is changed to mysqlusr.
The directory permission configuration is as follows:
D: \ hosting \ system \ mysql \
Mysqlusr
Read and run
List folder Directories
Read
D: \ hosting \ system \ mysql \ tmpdir
Mysqlusr
Modify
Read and run
List folder Directories
Read
Write
D: \ hosting \ MySQLDB \
Mysqlusr
Modify
Read and run
List folder Directories
Read
Write
4. Modify the corresponding configuration of MySQL
Modify my. ini in the MySQL directory
Add a row as follows:
Tmpdir = D:/hosting/system/MySQL/tmpdir

  

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.