Skip to Main Content
Sams Teach Yourself MySQL in 21 Days, Second Edition
book

Sams Teach Yourself MySQL in 21 Days, Second Edition

by Tony Butcher
December 2002
Beginner content levelBeginner
640 pages
16h 41m
English
Sams
Content preview from Sams Teach Yourself MySQL in 21 Days, Second Edition

The MySQL Data Directory

After you start administering MySQL in anything but the most simple way, it becomes important to understand the structure of the MySQL data directory.

If you installed from a source distribution, this will be called var/ (such as /usr/local/mysql/var/), but if you installed a binary distribution, it will be called data/ (such as /usr/local/mysql/data/). There's no difference between the two, just the name, which has stayed different for historical reasons.

What's in the data directory? Not surprisingly, there's data, but there's a lot more besides.

Here's a sample directory listing:

# ls -l total 20888 -rw-rw---- 1 mysql mysql 25088 Aug 12 09:33 ib_arch_log_0000000000 -rw-rw---- 1 mysql mysql 5242880 Aug 24 14:00 ib_logfile0 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself MySQL

Sams Teach Yourself MySQL

Chris Newman
Oracle® Database 10g Insider Solutions

Oracle® Database 10g Insider Solutions

Arun Kumar R., John Kanagaraj, Richard Stroupe
MySQL and mSQL

MySQL and mSQL

Tim King, George Reese, Randy Yarger
Jump Start MySQL

Jump Start MySQL

Timothy Boronczyk

Publisher Resources

ISBN: 0672323923Purchase book