Install mysql5.7 (compressed version)

1. Unzip

2. Configure MYSQL_HOME, PATH

3. Configure my.ini

  Copy and rename my-default.ini under %MYSQL_HOME% to my.ini, edit:

  [mysqld]
  # These are commonly set, remove the # and set as required.
  basedir =[%MYSQL_HOME%]
  datadir =[%MYSQL_HOME%]/data
  port = 3306

4. Initialization (generate datadir, and generate metadata in data, etc.)

 Command: mysqld --initialize-insecure: auto-generate root user without password

           or

            mysqld --initialize: Automatically generate root user with random password

5. Start the service: net start mysql

 

Note: Don't forget step 4!

 Reference: http://jingyan.baidu.com/article/8cdccae946133f315513cd6a.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327033470&siteId=291194637