5.6.45 mysql database after the installation configuration (offline installation roadblock)

 

Second, the configuration windows10

(1) environment variable configuration

Open Control Panel => System and Security => System => Advanced System Settings, select the environment variable to find the path in system variables, edit the option.

 

 

The first line is the path environment variable oracle database configuration, the above figure is the last line of the installation path jdk path configuration. We want to add mysql installation path path configuration.

The default path mysql version 5.6.45 installed position as follows:

C:\Program Files\MySQL\MySQL Server 5.6\bin

After configuring, using WIN + R key combination cmd window test call is successful, as is success: 

 

 

(2) modify the database data storage location

Modify the configuration file my.ini

Open the following folder, there is a my.ini, open the Edit with Notepad ++ and save.

C:\ProgramData\MySQL\MySQL Server 5.6

Datadir value, and the future of our position mysql database using database TABLE save the file. 

datadir =F:/Program Files/Documents/MySQL Server 5.6/data

Note: my.ini inside / keyboard? Up/

Right-click the desktop: This computer => Management

 

 

The following is a hidden file mysql installed on the local windows10 system folder, the directory may have a different version of the mysql database tables folder.

C:\ProgramData\MySQL

The inside of the data folder to your own directory.

Modify user permissions to a local folder

After moving to self-built directory, there will be problems Service failed to start because MySQL Service is a Network Service identity launch, this time need to give all the rights of self-built catalog of the Network Service user group accounts.

Select the new data folder, right property, in a security fence under Group or user names can add permissions to the Network Service.

 After installing the above steps, restart MySQL56 service or restart your computer to implement a custom mysql database stores data directory.

 

==================

end

Guess you like

Origin www.cnblogs.com/MarlonKang/p/11626687.html