当前位置:网站首页>MySQL uninstallation and installation methods
MySQL uninstallation and installation methods
2022-07-06 08:50:00 【LV dajuan】
Database uninstall
See this blogger for details https://blog.csdn.net/qq_45776730/article/details/123258877
1、 Open the registry (cmd–>regedit)
Delete the following three directories ( But I only found it in the first one MYSQL Catalog , The last two are not found )
- HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Application/MySQL
- HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Application/MySQL
- HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application/MySQL
2、 Control panel -> Procedures and functions -> uninstall with mysql Keywords are unloaded
3、 open c disc , Check hide file , You'll see a ProgramData Folder , Found inside MySQL Folder deletion ( Don't worry if you don't )
4、cmd Command line input net stop mysql Shut down first mysql service , Then input sc delete mysql Delete MySQL service , The deletion success will be displayed . But after I input, the result is like this :
It should be that it has been uninstalled completely 
Press down win+R perform services.msc Access to services 
---------- Now try to install it again --------------------
Database installation
1、 The first step was to download the installation package first I'm on the official website 

A little explanation :
Here I download a compressed package , Because the previous installation is to download one .msi, Then keep clicking next , But this method will install many unused things , Download the compressed package and install , Only pure database services are installed . See the blogger's
Preface : Why not use installer Keep clicking on the next quick installation method and choose to configure manually zip Compressed version ?
One 、installer There are many options for installation , For many people, they don't know whether to choose some options , In fact, there are many things that do not need to be installed .mysql zip Compressed packages can only download pure database services
Two 、 Unloading is not clean ,installer Will write some data in the registry , If some professional software is not used to uninstall , The data in the registry may not be cleared , There may be other troubles in the future installation . When uninstalling the compressed package version, directly delete the service and put mysql Just delete the installation directory
3、 ... and 、zip Version installation can customize the installation location
Four 、zip Version can install multiple databases of different versions at the same time , Just need different service port numbers
————————————————
Copyright notice : This paper is about CSDN Blogger 「 Xiao Li Qiuqiu 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/qq_45369284/article/details/123446789
Material display of two installation methods :
2、 Put the compressed package where you want to install the database and extract the folder , I put it in D disc , I want to install the database in D disc , It's better not to have Chinese in this path 
3、 Add environment variables
Everyone should be very skilled ,, ok , I'd better record it
3.1 Copy the folder path in the folder extracted in the previous step ( Copy path )
3.2 This computer -> attribute -> Advanced system setup 

Okay , Add completed !
4、 mount this database ( Yes , The installation starts now )
4.1 from Start , find powershell And Administrator status open 
4.2、 install
( When you add environment variables ) Direct input mysqld --install ( If you don't need to add environment variables , Then go to the directory bin The next step is to execute )
here , Normally, it will report :Service successfully installed.( I succeeded in one step, haha )
4.3 initialization
initialization mysql
Input mysqld --initialize --console, A random password will be generated , I've installed it here , So I can't take a screenshot , The initial password is :A temporary password is generated for [email protected]: Initial password ( I'm covered up here , Your should have symbols ). At the back of this time ************ It's your initial password .
---------------- 4.2、4.3 Screenshot --------------------
All the subsequent operations are in Powershell In the , The screenshot here is in cmd In the terminal , But it seems all right emmmm
5、 Turn on mysql service :net start mysql
6、 Verify login :mysql -u root -p Then enter the password and appear mysql>> Then go to mysql
7、 Change Password :ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Back one root Password set for . After execution, a :Query OK
8、 Reopen one Powershell terminal , Login again and enter the new password for verification :mysql -u root -p
9、 I want to ensure success , I'm in again windows Common terminal (cmd) Input mysql -u root -p Verified with the new password , Can access the database server , It indicates that the server installation is successful
————————————————
This installation is based on the blogger's method :https://blog.csdn.net/weixin_33543395/article/details/113383357
边栏推荐
- 随手记01
- Double pointeur en langage C - - modèle classique
- Revit 二次开发 HOF 方式调用transaction
- 游戏解包的危害及资源加密的重要性
- gcc动态库fPIC和fpic编译选项差异介绍
- JS native implementation shuttle box
- Variable length parameter
- win10系统中的截图,win+prtSc保存位置
- The network model established by torch is displayed by torch viz
- Problems in loading and saving pytorch trained models
猜你喜欢

Mobile phones and computers on the same LAN access each other, IIS settings

【剑指offer】序列化二叉树

FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战

TP-LINK 企业路由器 PPTP 配置

704 binary search

win10系统中的截图,win+prtSc保存位置

Process of obtaining the electronic version of academic qualifications of xuexin.com

Computer cleaning, deleted system files

LeetCode:236. 二叉树的最近公共祖先

LeetCode:498. 对角线遍历
随机推荐
角色动画(Character Animation)的现状与趋势
超高效!Swagger-Yapi的秘密
电脑清理,删除的系统文件
LeetCode:39. 组合总和
sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
Analysis of the source code of cocos2d-x for mobile game security (mobile game reverse and protection)
sublime text中conda环境中plt.show无法弹出显示图片的问题
【嵌入式】使用JLINK RTT打印log
Process of obtaining the electronic version of academic qualifications of xuexin.com
To effectively improve the quality of software products, find a third-party software evaluation organization
egg. JS directory structure
SAP ui5 date type sap ui. model. type. Analysis of the parsing format of date
Leetcode: Sword finger offer 42 Maximum sum of continuous subarrays
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
随手记01
Deep anatomy of C language -- C language keywords
Trying to use is on a network resource that is unavailable
目标检测——Pytorch 利用mobilenet系列(v1,v2,v3)搭建yolov4目标检测平台
如何进行接口测试测?有哪些注意事项?保姆级解读
TP-LINK 企业路由器 PPTP 配置