Win10 installs mysql5.7 decompression version in 5 steps

A brief introduction, basically copy and paste can be configured successfully:  

1. Download the 5.7 decompressed version: download from the official website https://dev.mysql.com/downloads/file/?id=482487   ; too slow; 

               Baidu Cloud Download: Link: https://pan.baidu.com/s/1TQzYZRM_0Th-EmgKi7drBA; Password: j5w5

2. There is a my-default.ini in the unzipped mysql directory, copy and rename my.ini (if not, find one on the Internet)

3. Configure basedir (mysql installation directory) datadir (mysql data directory) in my.ini and other such as case-insensitive

               For example, my modification:

                         basedir = D:\\app\\mysql\\mysql-5.7.12-winx64
                         datadir = D:\\app\\mysql\\mysql-5.7.12-winx64\\data
                         character_set_server=utf8

                        lower_case_table_names=1

              [mysql]
              default-character-set=utf8
              

4. Initialize mysql, use the administrator identity to enter the decompressed bin directory,

         Run the command: mysqld --initialize --user=mysql --console to initialize, the console will give you the password after initialization, please save it;

        Then run the installation command: mysqld --install mysql

       Service start command: net start mysql

       Login command after successful startup: mysql -uroot -p

       Prompt to enter the password, which is the password printed on the console after initialization; just copy, right-click and paste

       Set a new password: set password=password('123456'); Remember that the end of the sentence ends with a semicolon;

  5. For convenience, it is also to configure environment variables, so no configuration will be done here; 

  6. Other

          Exit command: quit;

         Stop the service: net stop mysql;

          Start the command: net start mysql;

 

    

     

 

Guess you like

Origin blog.csdn.net/xiaodujava/article/details/89207624