当前位置:网站首页>Installation and removal of MySQL under Windows
Installation and removal of MySQL under Windows
2022-07-03 09:59:00 【look-word】
Windows Next MySQL Installation and removal of
install Mysql
1 download mysql


2 Installation tutorial
2.1 Configure environment variables
Variable name :MYSQL_HOME
A variable's value :D:\software\programming\environment\mysql-8.0.29-winx64 // bin The parent directory of the directory
- Make sure preservation
- Make sure preservation
- Make sure preservation
- Make sure preservation

2.2 Generate data file
Run as administrator cmd

Get into D:\software\programming\environment\mysql-8.0.29-winx64\bin> Next ( Let's talk about it here : The path here needs to be adjusted according to the actual installation position , In short, just unzip the file and put it there , Just open it there ~)
Carry out orders :mysqld --initialize-insecure --user=mysql stay D:\software\programming\environment\mysql-8.0.29-winx64 Generate under directory data Catalog
2.3 install MySQL
Go ahead with the order :mysqld -install

2.4 Start the service
Go ahead with the order :net start MySQL

2.5 Sign in MySQL
Sign in mysql:( Because no password was set before , So the password is empty , No password required , Just go back )
E:\python\mysql\mysql-8.0.12-winx64\bin>mysql -u root -p

2.6 Query user password
Query user password command :mysql> select host,user,authentication_string from mysql.user;

2.7 Set up ( Or modify )root User password
mysql> use mysql

Change Password ( Remember to save )
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’;

flush privileges;
effect : It's equivalent to preserving , After executing this order , Settings take effect , If not , The same password as before

2.8 sign out
mysql> quit
2.9 Test landing

If unable to log in
- Follow the steps below to delete Delete complete
- Re assembling

Delete completely Mysql
Deleted base condition stop it MySQL Operation of
take MySQL Service stopped , I have only one here MySQL service , If there are more than one MySQL service , And stop it all .

- net stop To delete mysql Name of service

uninstall mysql server Other equipment

Delete MySQL Install under directory MySQL Folder
- This file directory can't be found. Don't worry The following steps can find

Open registry editor , Delete registry
utilize Shortcut key win+R, Input “regedit”, enter , open Registry editor

If there is no corresponding folder , There's no need to delete .
Delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL Folder
Delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL Folder .
Delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL
Folder .
mysql The location of

Delete directory “C:\ProgramData\MySQL” Folder
Delete directory C:\ProgramData\MySQL Folder , If the display is being used by another application , Cannot delete , Then you need to restart your computer , You can delete .
Open the service again , Check to see if there is MySQL Unload residue
If you have already MySQL uninstall , But through Start -》 All applications -》Windows Management tools -》 service Check out MySQL Services remain in system services .
I don't want to change the service name , What should we do about it .
As long as CMD Enter a command to delete the service :sc delete mysql // there mysql Is the service name you want to delete
In this way, the service is deleted .
边栏推荐
- UCI and data multiplexing are transmitted on Pusch - Part I
- The cyclic shift of PUCCH in NR channel is generated by MATLAB
- Of course, the most widely used 8-bit single chip microcomputer is also the single chip microcomputer that beginners are most easy to learn
- Fundamentals of Electronic Technology (III)__ Chapter 6 combinational logic circuit
- Emballage automatique et déballage compris? Quel est le principe?
- 万字手撕七大排序(代码+动图演示)
- 【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
- Chromium Embedded Framework (CEF) 介绍
- Vector processor 9_ Basic multilevel interconnection network
- openEuler kernel 技术分享 - 第1期 - kdump 基本原理、使用及案例介绍
猜你喜欢

Gpiof6, 7, 8 configuration

对于新入行的同学,如果你完全没有接触单片机,建议51单片机入门

UCI and data multiplexing are transmitted on Pusch (Part 4) --small block lengths

For new students, if you have no contact with single-chip microcomputer, it is recommended to get started with 51 single-chip microcomputer

Code word in NR

手机都算是单片机的一种,只不过它用的硬件不是51的芯片

嵌入式本来就很坑,相对于互联网来说那个坑多得简直是难走

The new series of MCU also continues the two advantages of STM32 product family: low voltage and energy saving

UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)

03 FastJson 解决循环引用
随机推荐
要选择那种语言为单片机编写程序呢
CEF下载,编译工程
SCM is now overwhelming, a wide variety, so that developers are overwhelmed
开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~
Hal library sets STM32 clock
Design of charging pile mqtt transplantation based on 4G EC20 module
Oracle database SQL statement execution plan, statement tracking and optimization instance
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
51 MCU tmod and timer configuration
Stm32f407 key interrupt
PIP references domestic sources
MySQL 数据库基础知识(系统化一篇入门)
You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
STM32 general timer output PWM control steering gear
内存数据库究竟是如何发挥内存优势的?
Basic knowledge of MySQL database (an introduction to systematization)
在三线城市、在县城,很难毕业就拿到10K
[male nanny style] teach you to open the first wechat applet
Serial communication based on 51 single chip microcomputer
STM32 port multiplexing and remapping