windows modify mysql data storage directory

I am here is mysql8, the same applies to other versions of this method, only the directory name is not the same.

 

First, modify the configuration file

Mysql After installation is complete, locate the my.ini configuration file, directory location C: \ ProgramData \ MySQL \ MySQL Server 8.0.

 

 Data do not change the name of the best.

Second, the original data moved to the custom directory

 

 The C: \ ProgramData \ MySQL \ MySQL Server 8.0 Data directory under the cut to custom directories (modified configuration file directory), I am here is E: \ java \ mysql8.

Third, restart the service

 

 

carry out.

Guess you like

Origin www.cnblogs.com/enenen/p/12123032.html