note:
This paste then apply to the Windows environment under use Mysql installer configuration changes to install mysql database
1, view the data storage location
mysql>show global variables like "%datadir%";
2, view the location where the configuration file
Locate the file C: \ Program Files \ MySQL \ MySQL Server 8.0 \ etc \ mysqlrouter.conf.sample again this file indicates the directory where the configuration file, PROGRAMDATA_FOLDER
[DEFAULT] logging_folder = %PROGRAMDATA_FOLDER% plugin_folder = %INSTALL_FOLDER%/lib runtime_folder = %PROGRAMDATA_FOLDER% config_folder =% PROGRAMDATA_FOLDER% # configuration file directory, PROGRAMDATA, the next step is to find the next directory, see Step
3, find the folder PROGRAMDATA
On modern versions of Windows, you’ll see a “ProgramData” folder on your system drive—usually the C:\ drive. This folder is hidden, so you’ll only see it if you show hidden files in File Explorer.
Note: On modern versions of Windows, you will see on the system drive disk a "ProgramData" folder - usually C drive on another disk, but this folder is hidden by default, in addition to check again to see at the show hidden files to see the dog.
as follows:
This time to open the C: \ ProgramData \ MySQL \ MySQL Server 8.0 directory will see the mysql configuration files and data directories
4, shut down the server, migrate data directory, modify the configuration file to restart the service
5, start the service