当前位置:网站首页>Install MySQL on Windows platform (with Navicat premium 12 "using" tutorial)
Install MySQL on Windows platform (with Navicat premium 12 "using" tutorial)
2022-06-29 00:05:00 【Texas squirrel】
One . First, download the official website
Link address :https://dev.mysql.com/downloads/mysql/8.0.html.
The first is Windows(x86,64 position ),ZIP The archive
The second is Windows(x86,64 position ),ZIP Archive debug binaries and test suites
Download as needed ( I downloaded the first )
Two . use Open as Administrator Command prompt
1. Find the installation directory
C:\Windows\system32>d:
D:\>cd "MySQL"
D:\My SQL>cd mysql-8.0.19-winx64
D:\My SQL\mysql-8.0.19-winx64>cd bin
2. Input :mysqld --install
D:\My SQL\mysql-8.0.19-winx64\bin>mysqld --install
result ( Under normal circumstances ) as follows , That's it
Service successfully installed.
① If it appears
Install/Remove of the Service Denied
That's because you didn't open it as an administrator cmd
② If directly ejected 
This is due to downloading vs2017 Above version , No MySQL The problem of , The two conflict , Can download
A collection of Microsoft common runtime libraries , Baidu or 360 Software managers can download
3. In the installation directory (D:\My SQL\mysql-8.0.19-winx64) New file my.ini, Write content :
[client]
# Set up mysql Client default character set
default-character-set=utf8
[mysqld]
# Set up 3306 port
port = 3306
# Set up mysql Installation directory
basedir=D:\\MySQL\\mysql-8.0.19-winx64
# Maximum connections allowed
max_connections=20
# The character set used by the server defaults to 8 Bit coded latin1 Character set
character-set-server=utf8
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
And then use it Run as Administrator cmd, Input ( Enter only the first line of command ):mysqld --initialize --console
D:\My SQL\mysql-8.0.19-winx64\bin>mysqld --initialize --console
2020-02-06T08:30:48.674372Z 0 [System] [MY-013169] [Server] D:\MySQL\mysql-8.0.19-winx64\bin\mysqld.exe (mysqld 8.0.19) initializing of server in progress as process 3936
2020-02-06T08:30:48.675666Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2020-02-06T08:30:50.016735Z 5 [Note] [MY-010454] [Server] A temporary password is generated for [email protected]: pY6q10jeu<py
Connect MySQL
D:\MySQL\mysql-8.0.19-winx64\bin>net start mysql
MySQL The service is starting
MySQL Service started successfully .
If MySQL Has not started , You can open computer management , Find a service , And then find MySQL, Start it up
4. Connect mysql, Input mysql -u root -p
D:\MySQL\mysql-8.0.19-winx64\bin>mysql -u root -p
Enter password:
// See Step 3 when entering mysqld --initialize --console, And then a bunch of , Please pay attention to [Note] [MY-010454] [Server] A temporary password is generated for [email protected], After the colon is the password here , So my password is pY6q10jeu<py
// Note that passwords are generated randomly
A sign of success :
D:\MySQL\mysql-8.0.19-winx64\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.19
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
An error is reported if the password is entered incorrectly
① Enter without writing the password
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
② Enter the wrong password
Enter password: ******
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
3、 ... and 、 If you want to change your password after logging in
Input :alter user user() identified by “ New password ”;
alter user user() identified by "888888";
So your password is changed back to 888888
net start mysql start-up MySQL
net stop mysql stop it MySQL
sc delete mysql uninstall MySQL
exit sign out
free “ Use ”:Navicat Premium 12 course
https://www.cnblogs.com/suguangti/p/10875870.html
To prevent links from becoming obsolete , The general steps are as follows :
- Don't open the software yet , Open the register , Click on the top left patch, find Navicat Premium 12 Installation path for , Pay attention to it 360 And some other anti-virus software need to exit first
- open Navicat Premium 12, Then there is a pop-up box , Click Register on the left (Genarate)
- Find the... On the right side of the registration machine Greerate, Click on , Put the content on the left , Copied to the Navicat Premium 12 Location of registration code
- Click registration , Then select manual registration , Copy and paste the request code to the registration machine Request Code
- Then click on the bottom Generate, And then Activation Code Copy and paste the contents of to Navicat Premium 12 Corresponding position , And then it worked
边栏推荐
- Is it safe and reliable to open a securities account in Yixue school?
- [software analysis] iterative explanation of software analysis, design and modeling
- What are the virtual machine software? What are their respective roles?
- 转载:VTK笔记-裁剪分割-不规则闭合圈选裁剪-vtkSelectPolyData类(黑山老妖)
- Typescript -- Section 3: Interface
- This thing is called a jump watch?
- Quartz explanation and use
- MySQL connection query is easy to understand
- [Electronic Experiment 2] simple electronic doorbell
- Huawei's level 22 experts have worked hard for ten years to complete the advanced practical document of cloud native service grid. 6
猜你喜欢

stm32F407-------电容触摸按键

10. Yolo series

12. Détection d'objets Mask rcnn

Haskell 配置 VS code 开发环境 (2022年6月)

Typescript -- Section 5: classes

"Five considerations" for safe use of the Internet

oracle 去掉html标签

每日一题:消失的数字
![[software analysis] iterative explanation of software analysis, design and modeling](/img/37/1163fec464aed365d1ea04e63a0c90.png)
[software analysis] iterative explanation of software analysis, design and modeling

WPF implementation calls local camera~
随机推荐
Save data in Excel: use openpyxl to create multiple tables and set excel row limit
The magical zero knowledge proof can not only keep secrets, but also make others believe you!
Phoenix安装教程
stm32F407-------跑马灯、蜂鸣器
【C Primer Plus第二章课后编程题】
IO playback function of FIO
Analysis of CSRF Cross Site Request Forgery vulnerability
MNIST handwritten numeral recognition demo based on pytorch framework
Solve the problem of Chinese parsing by configparser
11.目标分割
Don't ask me how to do UI automation test again
Reading notes of English grammar new thinking Basic Edition 2 (I)
JDBC连接、断开数据库的封装
Huawei's level 22 experts have worked hard for ten years to complete the advanced practical document of cloud native service grid. 6
Common mistakes in software testing
12. Détection d'objets Mask rcnn
12.物體檢測Mask-Rcnn
Typescript -- Section 3: Interface
每日一题: 数组中数字出现的次数
How many locks are added to an update statement? Take you to understand the underlying principles