web services - MySQL Local Database Replication -
is possible replicate database second database in same server? want replicate database used application, , create copy used webservice testing puposes, creating fake orders, fake data, etc... , nice updates main db, product data updates...
i think use binlog-do-db (or similar) in mysql config , use server master , slave, played config before , had problems. in current replications replicate entire mysql server, works.
also, dont want replicate table1 table1 , instead, table1 table2. dont know if thats allowed.
is best approach or i'm trying wrong/not possible? recommend?
you might tempted try set single mysqld instance master , slave replicate-same-server-id; won't work, server-id must unique between every other id in use other replication master or slave.
see percona article on binlog-do-db et al. achieve running another mysqld instance on same node, , configure on slave replicate-rewrite-db apply statements different database name. not see rewriting table names in replication options, though.
alternatively, depending on size of database looking duplicate, may mysqldump , import database.
Comments
Post a Comment