当前位置:网站首页>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
边栏推荐
- Reading notes of English grammar new thinking Basic Edition 2 (I)
- Don't ask me how to do UI automation test again
- TypeScript --第三节:接口
- ctfshow XSS
- MapReduce case
- Software testing tools: complete and precise
- stm32F407-------LCD
- PHP uses curl to download Excel files after logging in to the website
- 每日一题:消失的数字
- With notes: re understanding else if
猜你喜欢
随机推荐
TypeScript -- 第二节:变量声明
Notes: three ways to define setters and Getters
力扣(LeetCode)178. 分数排名(2022.06.27)
Stm32f407------- general timer
Edge extraction based on Halcon learning [2] circles Hdev routine
What are the virtual machine software? What are their respective roles?
Windows10 phpstudy installing redis extension
Comics | goodbye, postman! One stop collaboration makes apipost more fragrant!
随笔记:定义setter和getter的三种方式
PHP函数file_get_contents与操作系统的内存映射
With notes: re understanding else if
[buuctf.reverse] 131-135
ES6 module
EditText监听焦点
矩 阵 压 缩
随笔记:重新认识 else if
Stm32f407-------- NVIC interrupt priority management
Common mistakes in software testing
Typescript -- Section 7 enumeration
MNIST handwritten numeral recognition demo based on pytorch framework









