当前位置:网站首页>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
边栏推荐
- nport串口服务器原理,MOXA串口服务器NPORT-5130详细配置
- 移动端H5 - 手撸一个生命线 timeline
- Nifi 1.16.3 集群搭建+kerberos+用户认证
- Several common SQL misuses in MySQL
- Flutter | 指定页面回传值的类型
- 单片机内部IO口保护电路及IO口电气特性以及为什么不同电压IO之间为什么串联一个电阻?
- Stm32f103+rfid-rc522 module realizes simple card reading and writing demo "recommended collection"
- 【笔记】线性回归
- AC自动机和Fail树
- mysql多表查询之_笛卡尔乘积_内连接_隐式连接
猜你喜欢

ts封装localstorage类,存储信息

The competition boss is in Huawei: network experts are from Stanford physics department, and some people "work as much as reading a doctoral degree"

7、 Logic of JMeter sending request

The working principle of PLL. For example, how can our 8MHz crystal oscillator make MCU work at 48mhz or 72mhz

【TensorFlow】检测TensorFlow GPU是否可用

Oracle中实现删除指定查询条件的所有数据
CA数字证书

UiPath Studio Enterprise 22.4 Crack

20220722 beaten record

JSP之自定义jstl标签
随机推荐
Why does fatal always appear when using opengaussjdbc? (tag database keyword user)
Please initialize the log4j system properly.
问题随记 —— 无法打开包括文件: “dirent.h”: No such file or directory
ts封装localstorage类,存储信息
国产AI蛋白质结构预测再现突破,用单条序列解决3D结构,彭健团队:“AlphaFold2以来最后一块拼图补齐了”...
Redis key has no expiration time set. Why was it actively deleted
32位单片机GPIO端口电路结构以及输出模式
练习代码----第一天
【2022新生学习】第二周要点
Esp8266 nodemcu flash file system (spiffs)
CA数字证书
苹果x充电慢是什么原因_iPhone 12支持15W MagSafe无线充电,未来苹果手机的充电会发生什么?_充电器…
动态规划背包问题之多重背包详解
快速学会使用文件的权限
go语言的基础语法(变量、常量、基本数据类型,for、switch,case、数组、slice(切片)、make和new、map)
The working principle of PLL. For example, how can our 8MHz crystal oscillator make MCU work at 48mhz or 72mhz
[2023 approved in advance] BOE
AWS Part 1
(已解决)idea编译Gradle项目提示 错误找不到符号
Several common SQL misuses in MySQL