Modification of the default path when downloading and installing the MySQL Windows version


foreword

After MySQL was acquired by Oracle, various operating specifications and constraints followed accordingly. No, as long as you download the installation package from the official website, whether it is a new version or an old version, there is no interface for selecting the path, resulting in the C drive Small friends are very embarrassing, today we will solve this problem.


1. MySQL download

So far, the official website MySQL download can directly skip the login, the official website download address: https://dev.mysql.com/downloads/
insert image description here

This download address contains all system versions, marked here for the convenience of friends who don’t know, the windows version download address is as follows: https://dev.mysql.com/downloads/installer/
insert image description here

Choose the version that suits you and click [Download] directly.

2. Modify the default path

1. Preparation before installation [very important]

Before installation, you need to create the default path of your installed version in advance. This step is very important. Here we use MySQL 8 as an example. You need to create a directory in advance: C:\Program Files\MySQL\MySQL Server 8.0, as shown in the figure below: Empty
insert image description here
directory That's it.

2. Start the installer

insert image description here
Select the program you want to install, and click [Next]

insert image description here
At this time, we can see that the installation directory selection box is displayed. At this time, you can choose the installation directory and data directory you want. After selecting, just click [Next].

The next step is to install according to your personal preferences. Here are two pictures for your reference:
insert image description here
insert image description here

Summarize

1. MySQL download

The download is still very simple. You can also search the official website download address directly by searching the search engine, or you can directly use the download address in this article, it is the same.

2. MySQL default path modification

This article provides you with an idea: Let the default installation path of the program conflict with the real existing local directory, so that when the program cannot make a decision for you, it will let you decide.

This idea can also be used in other similar programs

Finally, I hope this article can be helpful to everyone.

Guess you like

Origin blog.csdn.net/yezhijing/article/details/131976794