当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
集成电路实践----D触发器
太香了!阿里Redis速成笔记,从头到尾全是精华!
CNN鲜花分类
Wigner-Ville distribution for time-frequency analysis
电设3----脉冲信号测试仪
对象和类总结
idea使用jdbc对数据库进行增删改查,以及使用懒汉方式实现单例模式
容器中的Cgroup
vite.config.ts introduces the `path` module Note!
如何查看微信小程序服务器域名并且修改
Redis最新6.27安装配置笔记及安装和常用命令快速上手复习指南
学习编程的目标
DOM - Event Delegate
延时函数-定时器
解决(An error happened during template parsing (template: “class path resource [templates/...]
只出现一次的数字||| —— 哈希映射、异或位运算+分治思想
Mechanical keyboard failure
Filter 过滤器
H5中的拖放(Drag 和 Drop)
使用 docker 搭建 redis-cluster 集群








