当前位置:网站首页>MySQL installation and configuration - detailed tutorial
MySQL installation and configuration - detailed tutorial
2022-04-22 05:20:00 【Autumn wind leaves yellow】
I use it 8.0.17 edition , Enter first mysql In the official website (Mysql Its official website -->https://www.mysql.com/), Here are the detailed steps :




After downloading, put the installation package into a folder and unzip

Open the command line as Administrator (cmd), Must be an administrator , Otherwise, the following commands require permission , There is an error !
1, Go down to mysql Of bin Under the table of contents :cd /d D:\mysql\mysql-8.0.17-winx64\bin

2, install mysql Service for :mysqld --install

3, initialization mysql,mysqld --initialize --console ad locum , Initialization produces a random password , As shown in the picture box below , Remember this password , We'll use that later

4, Turn on mysql Service for net start mysql

5, validate logon ,mysql Is the installation successful , mysql -u root -p Pay attention to the random password generated above , Excluding spaces before symbols , Otherwise, it will fail to log in ), If it's the same as the figure below , It means your mysql Installed successfully !

6, Change Password alter user 'root'@'localhost' identified with mysql_native_password by '123456';

7, Verify that the password was modified successfully exit

If you are entering the installation command mysqld install
Problems arise The service already exists
This is because it has been installed before mysql Clean and not deleted . Run as administrator again , Input sc query mysql Take a look at the name mysql Service for , It is found that the command has been installed before sc delete mysql Delete the mysql

版权声明
本文为[Autumn wind leaves yellow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210622009058.html
边栏推荐
- Studio3t expired activation method / and scripts that reset the use date are not available solution / Studio 3T unlimited activation
- Restful style API design
- Database (II) addition, deletion, modification and query of MySQL table (basic)
- Mysql database for the 11th time
- Clonal map of writing in mind
- One way to disable Google cross domain
- [Qualcomm sdm660 platform] (8) -- Introduction to camera metadata
- Cached and condensed: Web cache degradation in the wild
- [I. XXX pest detection project] 2. Trying to improve the network structure: resnet50, Se, CBAM, feature fusion
- Distributed transaction Seata
猜你喜欢

Machine learning -- under fitting, over fitting and regularization

2022-1-17 to 2022-1-30 iterator mode

Unity中的UGUI源码解析之事件系统(9)-输入模块(下)
![[WPF] data template selector](/img/6c/ae815d0399a9ae93edd815539b44e1.png)
[WPF] data template selector

Security challenges in an increasingly tangled web

Punch in: 4.20 C language chapter - (1) first acquaintance with C language - (10) keywords typedef, static

(2022.1.31-2022.2.14) template mode analysis

Distributed transaction Seata

MySQL数据库第十一次

The eleventh job of MySQL database - Application of view
随机推荐
【CANdelaStudio编辑CDD】-2.3-实现$27服务多个SecurityLevel之间的跳转(UDS诊断)
Drawing scatter diagram with MATLAB
Social media and fake news in the 2016 election
Nexus private server - (II) console installation of version 3.2.0, initial password location
JUnit assertion
Status mode (4.4-4.10)
[matlab] draw Zernike polynomials
Three locking methods of the bottom layer of synchronized: (3.21-3.27)
Meetup 02期回顾:Q&A 集锦
TCP three handshakes and four waves (2022.4.18-4.24)
MySQL数据库第十一次作业-视图的应用
Dynamic programming -- lc474 One and zero
Why choose B + tree as the underlying engine of MySQL: (3.28-4.3)
Western dichotomy and Eastern trisection
Event system for ugui source code analysis in unity (9) - input module (2)
Pyqt5 + yolov5 + MSS to realize a real-time desktop detection software
Complexité temporelle et spatiale
[network protocol] why learn network protocol
[WPF] use ellipse or rectangle to make circular progress bar
Usage of swagger and common annotation explanation