实现:巧用LINK(硬链接),原理:linux文件系统中硬链接相当于文件的入口,记录着ionde的信息。一个文件存在多个硬连接时,删除一个硬链接不会真正的删除ionde(存储文件的数据)

# 创建硬链接
ln test_table.ibd  test_table.hdlk

# 登陆数据库,删除table表。 drop table test_table; 会很快删除完,因为只是删掉了硬连接符号。
# 退出数据库,删除硬链接数据文件 rm
-f test_table.hdlk

 

 

 

 

相关文章:

  • 2021-08-25
  • 2021-11-30
  • 2021-11-30
  • 2021-12-03
  • 2022-01-17
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2021-04-21
  • 2021-05-06
  • 2021-11-30
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案