当前位置:网站首页>MySQL 数据恢复 —— 使用 data 目录
MySQL 数据恢复 —— 使用 data 目录
2022-07-23 18:12:00 【daydreamed】
MySQL 数据恢复 —— 使用 data 目录
当因 电脑重置 或 MySQL 文件损坏 导致 MySQL 无法正常启动 需要重装 MySQL 时,可以使用 原先 MySQL 中的 data 文件夹 或 备份的 data 文件夹 进行 数据的恢复。
注:笔者使用的 MySQL 版本为 8.0.29 。
步骤:
1、关闭 MySQL 服务
2、将备份的 data 文件夹 复制到 mysql 的安装路径下,覆盖现有 data 文件夹
(注:重装的 mysql 没有 data 文件夹,需要自己 新建一个数据库,前提是已经 完成了 mysql 的配置)
3、重新开启 MySQL 服务
4、查看数据库(数据已恢复)

边栏推荐
- Socat uses "suggestions collection"
- GPS北斗时钟服务器(NTP网络时钟系统)施工部署方案
- Mysql database [Database Foundation -- introduction]
- Brief analysis of compiling principle of.Net CLR R2R
- Alibaba's latest masterpiece! It took 187 days for the liver to come out. 1015 pages of distributed full stack manuals are so delicious
- [machine learning] Wu Enda: lifelong learning
- AE tutorial, how to animate illustrator layered documents in after effects?
- 为啥一问 JVM 就 懵B ?
- How should testing cope with the new development mode?
- 在Hyper-V中手动将.avhd合并到.vhd
猜你喜欢

【面试:并发篇22多线程:ReentrantLock】
![Atcoder regular contest 144 [VP record]](/img/8c/bcffb95cb709087103bb79b8a358d1.png)
Atcoder regular contest 144 [VP record]

三维点云课程(六)——三维目标检测

入门数据库Days3

【leetcode天梯】链表 · 022 链表中倒数第k个节点

Why are there Chinese materials and web pages for foreign chips?

Analyse de l'industrie | interphone logistique

PowerCLi 导入 LicenseKey 到esxi

H7-TOOL的I2C接口方式脱机烧录操作方法,已经发布(2022-07-16)

简历上写的电商,那请问Redis 如何实现库存扣减操作和防止被超卖?
随机推荐
二叉树高度 [log2n]+1与log2(n+1)是否相等
SecureCRT乱码问题解决方法[通俗易懂]
Technical scheme of face recognition system
为啥一问 JVM 就 懵B ?
Solutions to SecureCRT garbled code problem [easy to understand]
canvas绘制文本和清除绘制
Leetcode daily question (1514. path with maximum probability)
LeetCode - 最接近的三数之和
Talk about the parental delegation mechanism in detail (often asked in interviews) [easy to understand]
搜索二维矩阵
H7-TOOL串口脱机烧录操作说明,支持TTL串口,RS232和RS485(2022-06-30)
R语言筛选dataframe指定的数据列、R语言排除(删除)dataframe中的指定数据列(变量)
elk笔记25--快速体验APM
Little fish sends lidar | just dinner is the first lottery
impala的详细写入流程
树莓派ssh登录
结构体大小的计算(结构体内存对齐)
Atcoder regular contest 144 [VP record]
公链之Sui(前脸书/Meta员工成立的新公链项目)
项目实战第九讲--运营导入导出工具