Solution to the lack of my.ini file in MySQL 5.7

Solution to the lack of my.ini file in MySQL 5.7

What is my.ini?

my.ini is the configuration file used in the MySQL database. Modifying this file can achieve the purpose of updating the configuration.

Where is my.ini stored?

my.ini is stored in the root directory of the MySql installation, as shown in the figure:

The MySQL 5.7 I installed lacks the my.ini file and needs to be created by myself.

The general contents are as follows

[mysqld]
character-set-server=utf8
#Bind IPv4 and port 3306 bind-address = 0.0.0.0
port = 3306
sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
default_storage_engine=innodb
innodb_buffer_pool_size=1000M
innodb_log_file_size=50M
# Set the installation directory of mysql# basedir=F:/test/mysql-5.7.19-winx64
# Set the storage directory of mysql database data datadir=G:\Tool\Mysql\data
# Maximum number of connections allowed max_connections=200
# skip_grant_tables
[mysql]
default-character-set=utf8
[mysql.server]
default-character-set=utf8
[mysql_safe]
default-character-set=utf8
[client]
port = 3306
plugin-dir=G:\Tool\Mysql\lib\plugin

Summarize

The above is the solution to the problem of missing my.ini file in MySQL 5.7 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Mysql5.7 my.ini file loading path and data location modification method under windows7
  • Detailed steps to configure my.ini for mysql5.7 and above

<<:  Docker practice: Python application containerization

>>:  TypeScript generic parameter default types and new strict compilation option

Recommend

The reason why MySQL uses B+ tree as its underlying data structure

We all know that the underlying data structure of...

Vue uses the method in the reference library with source code

The official source code of monaco-editor-vue is ...

How to embed flash video format (flv, swf) files in html files

Flash file formats: .FLV and .SWF There are two ex...

HTML 5.1 learning: 14 new features and application examples

Preface As we all know, HTML5 belongs to the Worl...

Simple writing of MYSQL stored procedures and functions

What is a stored procedure Simply put, it is a se...

Detailed tutorial on compiling and installing MySQL 8.0.20 from source code

In the previous article, we introduced: MySQL8.0....

HTML5+CSS3 coding standards

The Golden Rule No matter how many people are wor...

Summary of several implementations of returning to the top in HTML pages

Recently, I need to make a back-to-top button whe...

JS achieves five-star praise effect

Use JS to implement object-oriented methods to ac...

JavaScript to achieve elastic navigation effect

This article shares the specific code for JavaScr...

Steps to deploy Spring Boot project using Docker

Table of contents Create a simple springboot proj...

Detailed explanation of three ways to wrap text in el-table header

Table of contents Problem Description Rendering T...

Tomcat server security settings method

Tomcat is an HTTP server that is the official ref...