Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does mysql5.7 solve the problem that the my.ini configuration file does not exist

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "mysql5.7 how to solve the problem that the my.ini configuration file does not exist". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "mysql5.7 how to solve the problem that the my.ini configuration file does not exist".

Premise: directly baidu mysql, download the latest version of mysql

Custom installation

When service is not registered

1. Create a new my.ini file with the following contents:

[client]

Port=3306

Default-character-set=utf8

[mysqld]

# set to the installation directory of your own MYSQL

Basedir=C:\ Program Files\ MySQL\ MySQL Server 5.7

# set to the data directory of MYSQL

Datadir=C:\ Program Files\ MySQL\ MySQL Server 5.7\ data

Port=3306

Character_set_server=utf8

Sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER

# enable query caching

Explicit_defaults_for_timestamp=true

Skip-grant-tables

two。 Copy the file to the root directory of the MySQL5.7 installation

3. (administrator) Command prompt to enter the mysql5.7 installation directory bin directory

Cd C:\ Program Files\ MySQL\ MySQL Server 5.7\ bin

Enter the command:

Mysqld-- install MySQL57-- defaults-file= "C:\ Program Files\ MySQL\ MySQL Server 5.7\ my.ini"

Explanation:

MySQL57 is the name of the registered service

-- defaults-file= "path to MySQL profile my.ini"

Success

Thank you for reading, the above is the content of "mysql5.7 how to solve the problem that the my.ini configuration file does not exist". After the study of this article, I believe you have a deeper understanding of how mysql5.7 solves the problem that the my.ini configuration file does not exist, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report