2

27G数据库

 2 years ago
source link: https://evilcos.me/?p=78
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

EVILCOS

//:alert(/Hacking Symbol/)//余弦

Search

大家正在看

27G数据库

mysql库,总算恢复成功了。由于总总原因导致要恢复前些天备份的数据库文件(.sql),27G大小。

但是碰到几个问题:

1、mysql -uroot -p mydbmyisam_sort_buffer_size = 1024M
myisam_max_sort_file_size = 30G # 导入大sql文件时进行恢复时(无完整binlog,我采用最初级的恢复方式),不一会就发现恢复卡住了,在mysql里show>

我的数据库的myisam引擎支持的。其它的差不多这个思路,我没实战,自己探索去吧。这样配置好,重启mysql,然后再次备份就成功了。

2、期间还发现一些问题,这些问题可以通过mysql的错误日志文件具体查明与定位到,这些错误日志文件在my.cnf有配置路径。查日志文件是解决问题的一个非常重要的思路。如果找不到这样的日志文件,可以试试linux下的lsof -c mysql进行寻找。

反正方法多多。

About 余弦

一个符号而已 View all posts by 余弦 →

发表评论 取消回复

电子邮件地址不会被公开。 必填项已用*标注

评论

姓名 *

电子邮件 *

站点

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

Proudly powered by WordPress. Theme: Flat 1.7.11 by Themeisle.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK