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
(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