Linux机器上存储的mysql数据库中的实际数据在哪里?

编程入门 行业动态 更新时间:2024-10-24 16:30:58
本文介绍了Linux机器上存储的mysql数据库中的实际数据在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

哪个文件是在mysql数据库中的表中保存数据的实际文件?

Which files are the actual files holding the data in the tables in a mysql db?

我去了/var/lib/mysql/,我可以看到一堆相对较小的目录,这些目录与我的表相对应,还有很多名为servername-bin.0000001的文件,等等.

I went to /var/lib/mysql/ and I can see there a bunch of relatively small directories corresponding to my tables, and a lot of files named servername-bin.0000001 etc.

数据存储在那些文件中吗?

Is the data stored in those files?

推荐答案

它是特定于安装的,但是如果您使用/var/lib/mysql,则:

It is installation specific, but if you've /var/lib/mysql , then:

  • MyISAM表将存储在/var/lib/mysql/databasename/
  • 中的单个文件中
  • InnoDB驻留在/var/lib/mysql/ibdata中(除非您使用过innodb_per_table设置,在这种情况下,它的存储方式非常类似于MyISAM表)
  • MyISAM tables will be stored in individual files in /var/lib/mysql/databasename/
  • InnoDB resides in /var/lib/mysql/ibdata (unless you've used the innodb_per_table setting, in which case it's stored much like for MyISAM tables)

更多推荐

Linux机器上存储的mysql数据库中的实际数据在哪里?

本文发布于:2023-10-24 13:41:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524093.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库中   数据   机器上   Linux   mysql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!