Couldn't you also copy the .frm/.fyi/whatever the files are called?
Originally posted by: Nothinman
Couldn't you also copy the .frm/.fyi/whatever the files are called?
Possibly, but I wouldn't rely on that working. I know for a fact it doesn't work between architectures with endian differences, and it's not like mysqldump takes very long.
Was just curious. I find it surprising that endian order makes a difference, I thought that wouldn't matter, since mysql is a "flat file" database.
Originally posted by: Nothinman
Was just curious. I find it surprising that endian order makes a difference, I thought that wouldn't matter, since mysql is a "flat file" database.
It's not like it stores them in XML or CSV or something, it's binary data and as such is affected by architecture.
How do flat file db's differ from...er... "non flat file" db's? I thought flat file db's stored data in ascii or whatever, and (is there a name for them?) "other" db's basically just stored a memory dump on disk.
Originally posted by: Nothinman
How do flat file db's differ from...er... "non flat file" db's? I thought flat file db's stored data in ascii or whatever, and (is there a name for them?) "other" db's basically just stored a memory dump on disk.
I don't know enough about database design to say. But I do know that MySQL's table data is binary, it wouldn't make sense to store it in plain-text because you'd loose all the speed of using a database and might as well just use perl and sleepycat db files. Since MySQL 4 should be out soon (if it's not already) and it'll have many of the 'real' RDBMS features people complain MySQL is missing, maybe people will stop referring to it as a 'flat file' database.
Originally posted by: Nothinman
mysqldump the table then feed the dump file back onto mysql as a standard sql script.
nstead of querying the disk and writing to the disk for db queries, it just accesses the db in ram, and then updates the one on disk however often.