1. Download
In the official website to download the archive (here I downloaded the second)
2, Installation and Configuration
1. The archive into any directory
2. As shown above, the directory is created in a data empty folder, my.ini build a profile, the following code is written in the file:
Note: Note The following code is to be deleted, and that is the # behind the Chinese must be deleted, there is the following basedir and datadir to the appropriate directory into their own
[mysqld] # Set server Using the character set is UTF8 Character-SET-Server UTF8 = # IPv4 address binding the bind-address = 0.0.0.0 # mysql disposed end-connector slogan Port = 3306 # Set the mysql the installation destination directory = F basedir: /mysql-5.7.23 # mysql database setup data storage destination time directory datadir = C: /mysql-5.7.23/data # zoomed allow most large number of connections max_connections = 2000 when you create a new table # using the default storage engine will use default = INNODB-storage-engine # set the default coding and mysql database [mysql] default = UTF8-Character-sET [the mysql.server] default = UTF8-Character-sET # set the default client character set [Client] default = UTF8-character-sET
3. Open the cmd window as an administrator: win -> windows system -> right-click Command Prompt -> More -> Run as administrator.
4. Go to the bin directory
5. Run the install command mysqld --install (execution mysqld --remove uninstall)
6. Continue mysqld --initialize --user = root --console command
Note : MySQL root user will create a default initialization is complete random password, below the white part is the password, while in the data catalog also added the relevant configuration file, if character recognition can not have a password, put the date files in a directory We are deleted, re-run this step.
7. The Executive net start mysql start the service (net stop mysql execution shut down the service)
8. The execution log mysql -uroot -pqLBiVku7k% f MySQL (-u followed by user name, a password -p back, i.e. above the default random password)
9.set password = password ( 'root'); Change password
10. The Executive exit Log
11. Log in using the modified password MySQL
12. You can add a user login MySQL
Add formats:
grant permissions on database tables to username @ 'IP address' identified by 'password'
Example:
grant all on *.* to test@'%' identified by'test'