Record the problems you solve for others. Problem Description The version of MySQL is 5.7 and the operating system is window10. MySQL is installed in C:\Program Files. Recently, you need to add a new configuration item to the my-default.ini configuration file in the MySQL installation directory: max_allowed_packet=100M After editing a file, I always fail to save it and get the message "Access Denied". Workaround 1. Stop the MySQL service. 2. Open the file browser. File -> Change folder and search options -> "View" tab -> uncheck all hidden files and folders. 3. You can now see the hidden folder C:\ProgramData\MySQL\MySQL Server 5.7. In this folder there is a my.ini configuration file. MySQL reads this configuration file by default. 4. Copy myini to another disk, such as drive D. 5. Modify D:\my.ini and save. Note: max_allowed_packet=100M should be placed under the [mysqld] configuration section. You can search for this parameter first. If the system already has it, just change the number. 6. Delete my.ini in the original installation directory as an administrator. 7. Open the Start menu, right-click on the command line menu item -> Run as administrator. Execute the command: copy "D:\my.ini" "C:\ProgramData\MySQL\MySQL Server 5.7" Seventh, start the MySQL service. think Win10 restricts files and folders to be modified only with administrator privileges. So use this command line to solve the problem. At the same time, MySQL reads the my.ini configuration file under C:\ProgramData\MySQL\MySQL Server 5.7 by default. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: jQuery implements clicking left and right buttons to switch pictures
>>: Detailed explanation of Tomcat's Server Options
Introduction: When using MySQL to create a table,...
Table of contents 1. Introduction 2. Customize ta...
0. Preparation: • Close iTunes • Kill the service...
Solution: Just set the link's target attribute...
Prototype chain inheritance Prototype inheritance...
Recently, I need to use a lot of fragmented pictu...
This article records the process of upgrading MyS...
Web front-end optimization best practices: conten...
Note: All pictures in this article are collected ...
There is a difference between src and href, and t...
This article shares with you a draggable photo wa...
When using MySQL, we often sort and query a field...
If we want to make a carousel, we must first unde...
The commonly used Oracle10g partitions are: range...
As the title says, otherwise when the page is revi...