MySQL 8.0.19 Free Edition installation

Select the spur of the moment installed free version. . . Too many pits, repeated attempts

1. official website link https://dev.mysql.com/downloads/

2. After the download is complete extract to the position where you want to install

Creating my.ini (create a text file, rename, name + suffix), open

. 1  [mysql]
 2  # Set mysql client default character set 
. 3 default-Character-SET = utf8mb4
 . 4  
. 5  [mysqld]
 . 6  # Set 3306 port 
. 7 Port = 3306
 . 8  # Set mysql installation directory 
. 9 the basedir = D: \ Program Files (the x86) \ mysql8019
 10  # arranged to store directory data mysql database, mySQL 8+ does not require the following configuration, the system can generate their own, or they may error 
. 11  # DATADIR = XXXXX 
12 is  # maximum number of connector 
13 is max_connections = 20 is
 14  # server default character set used for the 8-bit coded character set latin1 
15 character-Server-sET = utf8mb4
 16 # The default storage engine that will be used when creating a new table 
17 default-Storage-Engine = INNODB

 

(Reference: https://www.cnblogs.com/ZhangYaF/p/12496597.html )

3. Open a command line window administrator rights

  •  bin directory within the installation directory of
  •  Excuting an order

Initialize the database mysqld --initialize --console # remember the end of the default root password

Install the database mysqld install

Start Service net start mysql

Log database mysql -u root -p # Enter lose the password, the default password top

Change password alter user 'root' @ 'localhost' identified by 'xxxxxxx'; (e.g. password)

 

 

other:

      Exit Database> exit;

       Close mysql service net stop mysql

 

Guess you like

Origin www.cnblogs.com/jpga/p/12566697.html