mysql - Restoring database to new cluster -


we using percona 5.7.16-10 server. expand current solution xtradb cluster. meanwhile created other machines , started cluster (running on 5.7.17-11-57 percona xtradb cluster version) , did testing there (everything seems working fine). dump current database running server , insert cluster. there no problem stop cluster (since testing). when create mysqldump used to, i'm not able insert cluster because of pcx_strict_mode (info here) - enforcing percona-xtradb-cluster prohibits use of lock table/flush table <table> read lock pxc_strict_mode = enforcing because mysqldump creates script contains table lock prohibited. i've tested several more options, master should don't check rule, didn't help, because insert query dump stuck , nothing happening.

is there mysqldump option avoid table locking queries, or have restore somehow via xtrabackup , use xtrabackup current running server?

i've read several topics here, didn't match same issue. solving how restore cluster fail, not scratch.

i glad suggestion mysqldump or proper way "insert" old database cluster.

if can take down current machine, , if building cluster scratch, think these (on mysqldump) avoid strict_mode, , possibly other hiccups:

--skip_add_locks --skip-lock-tables 

and not use

--single-transaction --lock-all-tables 

it might wise first node in cluster loaded data, then add on other nodes, letting them use sst load themselves.

if need keep current server alive, need discuss making master , 1 node of new cluster slave. plus xtrabackup better suited. now, locks , single-transaction necessary. setting strict_mode disabled seems right since cluster being built, , not yet live.

(caveat: have no experience performing task; if else provides more convincing answer, go them.)


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -