Where does mysql store data?

后端 未结 5 1159
情歌与酒
情歌与酒 2020-12-24 01:08

Where does mysql store data? I found out (by using mysql>SELECT @@datadir ) that it\'s in var/lib/mysql - but that can\'t be it. I have a quite big database (4 GB) called \'

5条回答
  •  生来不讨喜
    2020-12-24 01:13

    Reading between the lines - Is this an innodb database? In which case the actual data is normally stored in that directory under the name ibdata1. This file contains all your tables unless you specifically set up mysql to use one-file-per-table (innodb-file-per-table)

提交回复
热议问题