mysql 8.0 version installs the most complete version

Write a custom catalog title here


mysql 8.0 version installed most complete version
Login
https://dev.mysql.com/downloads/
Insert picture description here
click on the MySQL Community Server
after entering the page to download the installation file mysql
download is complete, unzip the file, the files into its own directory under want to store, For example:
Insert picture description here
When finished, click start
Insert picture description here
type cmd, and run in administrator mode, cd to jump to the next bin mysql appropriate documents, such as: cd D: \ Program files ( x86) \ mysql-8.0.11-winx64 \ bin
other versions do not used, version 8.0 directly within the operating
input: mysqld --initialize --console

Then copy the output result which includes: D:\Program Files (x86)\mysql-8.0.11-winx64\bin>mysqld --initialize --console
2020-04-27T10:40:16.559782Z 0 [System] [MY- 013169] [Server] D:\Program Files (x8
6)\mysql-8.0.11-winx64\bin\mysqld.exe (mysqld 8.0.11) initializing of server in
progress as process 5248
2020-04-27T10:40: 34.460806Z 5 [Note] [MY-010454] [Server] A temporary password i
s generated for root@localhost: it-UXsvk7k_=
2020-04-27T10:40:42.262252Z 0 [System] [MY-013170] [Server ] D:\Program Files (x8
6)\mysql-8.0.11-winx64\bin\mysqld.exe (mysqld 8.0.11) initializing of server has
completed
copied [Note] generated for root@localhost: it-UXsvk7k_=
Among them, it-UXsvk7k_= is the password, please keep it well;
Then enter mysqld --install, and the installation is complete, prompting successful Service successfully installed.
Continue to D:\Program Files (x86)\mysql-8.0.11-winx64\bin>net start mysql
MySQL service is starting...
MySQL service has been started successfully .
After the operation is completed, you need to modify the login password D:\Program Files (x86)\mysql-8.0.11-winx64\bin>mysql -u root -p
Then enter the password saved in the previous step, and then operate ALTER USER'root '@'localhost 'IDENTIFIED BY'your password';,
most people use Navicat, but also need to operate

use mysql;

ALTER USER'root'@'localhost' IDENTIFIED WITH mysql_native_password BY'your password';

FLUSH PRIVILEGES;
This complete use of mysql8.0 is over

Guess you like

Origin blog.csdn.net/qq_34117294/article/details/105806634