Which files are the actual files holding the data in the tables in a mysql db?
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?
By default, the datadir is set to /var/lib/mysql in the /etc/mysql/mysql.
The default data directory location is C:\Program Files\MySQL\MySQL Server 8.0\data , or C:\ProgramData\Mysql on Windows 7 and Windows Server 2008. The C:\ProgramData directory is hidden by default. You need to change your folder options to see the directory and contents.
It is installation specific, but if you've /var/lib/mysql , then:
databasename
/Check out the ibdata1
file and its ilk.
From the documentation:
"Two important disk-based resources managed by the InnoDB storage engine are its tablespace data files and its log files. If you specify no InnoDB configuration options, MySQL creates an auto-extending 10MB data file named ibdata1 and two 5MB log files named ib_logfile0 and ib_logfile1 in the MySQL data directory. To get good performance, you should explicitly provide InnoDB parameters as discussed in the following examples. Naturally, you should edit the settings to suit your hardware and requirements."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With