当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
【JS执行机制】
对象和类总结
Redis + Caffeine实现多级缓存
setTimeout与setInterval的区别
The difference and connection between dist, pdist and pdist2 in MATLAB
【无标题】
什么是Nacos?
两分钟录音就可秒变语言通!火山语音音色复刻技术如何修炼而成?
中国服装行业已形成一套完整的产业体系
【Anaconda】一行语句解决Spyder启动问题
EL 表达式 & JSTL 标签库
2022-07-08 第五小组 瞒春 户外拓展
MySQL 视图(详解)
【Frequency Domain Analysis】Spectral leakage, frequency resolution, picket fence effect
第四章-4.1-最大子数组问题
MySQL语法入门
【QMT】给QMT量化交易软件安装和调用第三方库(举例通达信pytdx,MyTT,含代码)
李开复花上千万投的缝纫机器人,团队出自大疆
加载事件的用法
什么是Knife4j?









