当前位置:网站首页>IPtables and binlog
IPtables and binlog
2022-08-02 17:04:00 【hjw1001】
First check the kali virtual machine ip address 192.168.106.137

then nmap scan ip on windows
thiscan scan normally
Then configure port rejection on kaliThen use this to deny windows access

At this time, the scan found that the nmap status is closed
kali rejects nmap scanning through IPtable
binlog
binlog is closed by default
┌──(rootkali)-[~]
└─# vim /etc/mysql/mariadb.conf.d/50-server.cnf
Insert log-bin=mysql-bin statement
After restartThe binlog function is turned on
myAfter inserting it and restarting it, the binlog is not on and I don't know why...
View latest logs in mysql:
MariaDB [(none)]> show master logs;
MariaDB [(none)]> show binlog events in ‘mysqlbin.000001’\G
Create hjw library and table and insert some data:
First full backup:
┌──(rootkali)-[/tmp]
└─# mysqldump -uroot-proot -B -F -x --master-data=2 hjw|gzip >/tmp/hjwlog
Accidentally deleted the database by carelessness
Fortunately, there is a binlog backup
Avoid deleting and copying the latest files:
┌──(rootkali)-[/var/lib/mysql]
└─# cp -v mysqlbin.000012 /tmp
To avoid subsequent data flushing into logs:
MariaDB [mysql]> flush logs;
mysql opens the backup file
┌──(rootkali)-[/tmp]
└─# mysql -uroot -proot < hjwlog
At this time, the hjw database is restored, but it is not complete, so the file 000012 is used.
Edit the file 000012 to delete the data after drop and redirect it to mysqlbin
At this time, the data is completely restored
边栏推荐
猜你喜欢

2022-0801 第六小组 瞒春 学习笔记

DOM - Event Delegate

MySQL 行级锁(行锁、临键锁、间隙锁)

idea使用jdbc对数据库进行增删改查,以及使用懒汉方式实现单例模式

如何正确且快速的清楚C盘!!释放C盘空间内存保姆级教程

VsCode更新后,怎么使用使用快捷键同时生成多个元素

【 Leetcode string, the string transform/hexadecimal conversion 】 HJ1. The length of the string last word HJ2. Calculation of a certain number of characters appear HJ30. String merging processing

机械键盘失灵

第三章-函数的增长-3.1-渐近记号

【无标题】
随机推荐
什么是hashCode?
单例模式(singleton pattern)
MySQL 的几种碎片整理方案总结(解决delete大量数据后空间不释放的问题)
2021 Huawei Cup Mathematical Modeling Contest E question - Ultra-Wideband (UWB) precise positioning problem under signal interference
基于mobileNet实现狗的品种分类(迁移学习)
PAT甲级 1130 中缀表达式
为什么四个字节的float表示的范围比八个字节的long要广
一文让你快速写上扫雷游戏!童年的经典游戏,发给你的小女友让你装一波!!
2022-07-10 第五小组 瞒春 学习笔记
【无标题】
setTimeout与setInterval的区别
(数学基础)第三章-3.2-标准记号和常用函数
【无标题】
Redis最新6.27安装配置笔记及安装和常用命令快速上手复习指南
【Anaconda】一行语句解决Spyder启动问题
中国服装行业已形成一套完整的产业体系
IPtables 和binlog
MySQL 行级锁(行锁、临键锁、间隙锁)
MySQL----多表查询
2022-07-23 第六小组 瞒春 学习笔记