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
ssh-secure shell, provides secure remote login. W...
In the table header, you can define the light bor...
Preface: The installation process will not be des...
Original text: https://dev.mysql.com/doc/refman/8...
Mysql left join is invalid and how to use it When...
Table of contents 1. Install html2Canvas 2. Intro...
This article example shares the specific code of ...
This article describes how to use Docker's mu...
Linux virtual machine: VMware + Ubuntu 16.04.4 Wi...
The steps are as follows 1. Create a docker group...
Error: Connection to blog0@localhost failed. [080...
1. Download Go to the Apache official website htt...
Table of contents 1. Declare a function 2. Callin...
Preface In the development of small programs, we ...
Table of contents 1. Related binlog configuration...