free installation package configuration mysql

  Recently by zip package configuration MySQL, MySQL version: 5.7.13 . Configuration, the number of stepped pit, below do some simple record, the specific configuration process is as follows:  

  1, the decompression mysql zip, placed in the specified directory, the system environment variables in the system configuration environment variable, the mysql bin folder to the path variable. If mysql in: C: \ Program Files (x86then the actual configuration is as follows:

  

 

   2, the global registration service mysql

    After extracting zip package, the default system is not mysql service performs the Window R & lt + , input services.msc , you can see all the registered service of the machine. Interface is as follows:

 

 

     If you did not register to the global mysql service , execute net start mysql, will report invalid mysql service name , system services, and no mysql this service, please register globals at the root mysql --install execute mysqld . When present in the system mysql service, it means that the service has been registered

   3, initialization mysql

   If no mysql initialization, execute net start mysql, will report " mysql service is starting, mysql service failed to start ", there will be normal mysql data folder under the folder, but some archive does not need to be performed in the mysql root directory the following command initializes: mysqld --initialize . After initialization, you can see in the mysql folder inside the automatically generated data folder , again through the command: net start mysql, can start successfully.

  

 

Guess you like

Origin www.cnblogs.com/gerry2019/p/11792937.html