You can change the default installation path, the data path, or both when you install MySQL server. After you have installed the server, the paths cannot be altered without removing and reinstalling the server instance.
To change paths for MySQL server
Identify the MySQL server to change and display the Advanced Options link.
Navigate to the Select Products and Features step by doing one of the following:
If this is an initial setup, select the
Customsetup type and click .
If MySQL Installer is installed already, launch it from the Start menu and then clickfrom the dashboard.
Click Available Products list.to filter the list of products, locate the server instance to be installed in the
With the server instance selected, use the arrow to move the selected server to the Products/Features To Be Installed list.
Click the server to select it. When you select the server, the Advanced Options link appears. For details, see the figure that follows.
Click Advanced Options to open a dialog window with the path-setting options. After setting the path, click to continue with the configuration steps.