I'm following http://dev.mysql.com/doc/refman/5.0/en/replication-howto-rawdata.html to copy data from one master to slave for replication, the instruction for copying is one of the following:
tar cf /tmp/db.tar ./data shell> zip -r /tmp/db.zip ./data shell> rsync --recursive ./data /tmp/dbdata
I look under /var/lib/mysql and see
ibdata1 mysql-bin.000142 database1 database2 ...
should I copy ibdata1 for db replication? doesn't this include all data(including mysql admin stuff) and would it mess up my slave database? should I copy each individual databases(database1,database2)?