当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
李开复花上千万投的缝纫机器人,团队出自大疆
【QMT】给QMT量化交易软件安装和调用第三方库(举例通达信pytdx,MyTT,含代码)
Servlet 技术2
机械键盘失灵
XGBoost 和随机森林在表格数据上优于深度学习?
2022-07-21 第六小组 瞒春 学习笔记
MySQL 高级(进阶) SQL 语句 (一)
Wigner-Ville distribution for time-frequency analysis
2022年低压电工考试试题及在线模拟考试
2022-07-25 第六小组 瞒春 学习笔记
【无标题】
JSP技术
CNN鲜花分类
nacos
PAT甲级 1078 哈希
2022-07-10 第五小组 瞒春 学习笔记
Redis6
MySQL (2)
【js手风琴效果案例】
自定义属性









