当前位置:网站首页>Frequently asked questions about MySQL
Frequently asked questions about MySQL
2022-07-23 16:36:00 【I pretend to be strong】
1. Summary
In the process of learning , We often encounter the situation of operating the database , And what we usually use most is mysql database , But in use mysql There will be all kinds of problems in the process of , In order to avoid the same problem, we can solve it quickly , The following is a summary of some problems I usually encounter .
2. forget mysq Password solution
1. stop it mysql service
net stop mysql
2, function cmd, Switch to mysql Of bin Catalog , Run the command
mysqld --skip-grant-tables
3. Open the second cmd2 window , Connect mysql, When prompted for a password , Directly enter
mysql -u root -p
4. view the database , Switch database
show databases;
use mysql;
5. change root password
UPDATE user SET Password=PASSWORD(‘newpassword’) where USER=‘root’;
6. Refresh the permissions , Sign out and log back in
FLUSH PRIVILEGES;
7. Close the previously opened mysqld window , And end through the task manager mysqld process
8. restart mysql service
net start mysql
3 How to uninstall myql
When a new one needs to be installed myql Be sure to uninstall the previous mysql, Otherwise it will lead to myql Unable to install successfully , There are four steps in total
1. stop it mysql service
2. Open the control panel -> Uninstall program -> uninstall mysql
3. Delete the remaining mysql The installation directory :C:\Program Files\MySQL
4. Delete data directory :C:\ProgramData\MySQL
边栏推荐
猜你喜欢
随机推荐
STM32F103+RFID-RC522模块 实现简单读卡写卡demo「建议收藏」
IIS 部署.NetCore
Calendar calendar class
聊一聊JVM的内存布局
Nifi 1.16.3 集群搭建+kerberos+用户认证
Redis' expiration strategy and memory elimination mechanism. Why didn't you release memory when the key expired
Do you know why PCBA circuit board is warped?
Practice code - day one
20220722 beaten record
ESP8266-NodeMCU——从苏宁API获取实时天气
LeetCode之等式方程的可满足性
Navicat15下载安装
【C语言】结构体、枚举和联合体
机器狗背冲锋枪射击视频火了,网友瑟瑟发抖:stooooooooppppp!
mysql多表查询之_内连接_显示内连接
WSAStartup函数的用途
问题随记 —— 无法打开包括文件: “dirent.h”: No such file or directory
锁相环工作原理,比如我们8MHZ晶振如何让MCU工作在48MHZ或者72MHZ呢
VMware platform STS certificate expired
华为新版Datacom认证介绍







