navicat installation
Downloaded from the Internet, detailed process, slightly
mysql8.0.11 (win10,64) installed
1. Download
MySQL8.0 For Windows zip package Download: https://dev.mysql.com/downloads/file/?id=476233 the bottom, click "No thanks, just start my download ." To start the download.
2, installation
2.1 Extract the zip package to the installation directory
Afterwards file directory
2.2 Configuration Environment Variables
Open bin file copy address> in the installation directory click open environment variable path> New, Paste
2.3 configuration file my.ini initialization
Not unpacked directory my.ini file, you need to create your own
Add installation my.ini root directory (New text file, the file type to .ini), writing the basic configuration:
[mysqld]
# set the port, typically 3306
Port = 3306
# Set mysql installation directory! !
F = basedir: jdbc \\ \\ mysql
# set the storage directory data mysql database! !
F = datadir: MySQL \\ \\ \\ jdbc the Data
# allow the maximum number of connections
max_connections = 200
# allowed number of connection failures
max_connect_errors = 10
# character set used by the server by default UTF8
Character-the SET-Server = utf8
# to create a new the default storage engine that will be used when the table
default-storage-engine = INNODB
# default "mysql_native_password" plug-in authentication
default_authentication_plugin = mysql_native_password
[mysql]
# set the mysql client default character set
default-character-the sET = utf8
[client]
# set mysql when connected to the server using the default client port
port = 3306
default-Character-SET = UTF8
Which, data directory does not need to create the next step in the initialization is automatically created.
# Set the mysql installation directory !!!
basedir = path-installable
# Set the storage directory data mysql database
datadir = own installation path \\ Data
(If you do not set up your own error will be reported mysqld: Can not create directory 'F: \ jdbc \ mysql \ data' (Errcode: 2 ...))
3, install mysql
To an administrator run cmd
3.1 initialize the database
Command in the bin directory of your MySQL installation directory:
mysqld --initialize --console
After execution, the content found in the print of the initial default password for the root user: [Note] [SM-0578] [Server] IS A Generated the Temporary password for root @ localhost: 666666
Bold red part of the code (note below)
3.2 Start Service
bin next execution command: mysqld --install [service name]
The latter can not write the name of the service, the default name for mysql. Of course, if you need to install multiple MySQL service on your computer, you can use a different name to distinguish
After the installation is complete, the command net start mysql start MySQL service ( NET STOP MySQL to stop the service; sc delete MySQL/mysqld -remove卸载 MySQL 服务
)
3.3, change passwords
Command in the bin directory of your MySQL installation directory: MySQL -u root -p
3.1 input step above remember passwords after a successful login execute the command: the ALTER the USER 'root' @ 'localhost' IDENTIFIED BY the WITH mysql_native_password 'new password';
Reference from: https: //www.cnblogs.com/laumians-notes/p/9069498.html