hi,
right now I have only 2 x big big MySQL tables to import from myql dump file and it is the remaining problem.
both near 20GB .sql and I use this command to restore the zipped dump file:
nohup bash -c “gunzip < UAT_fmkLogDB_fmklog_tfmk_seq_no_bak.sql.gz | mysql -u root -p fmklog”
so that when the putty session end, this command still keep going at the background, however the restore command above still cant finish, so may I know if I can do:
1) ONLY export data and import data only ?
if yes, what is the command to do it ?
nohup bash -c " mysqldump -uroot -p <dbname> <table name> –data --replace | sed ‘s/NO_AUTO_CREATE_USER//g’ | gzip -9 > <dump file>.gz"
?
2) export to .CSV files for data only from percona xtraDB cluster 5.7.x and import that CSV back to target percona xtraDB cluster 8.0.19
if yes, what is the command to do it ?
3) copy everything in the data directory path, e.g. /var/data/mysql folder of the percona xtraDB cluster 5.7.x copy it to the respecitve path, e.g.: /var/data/mysql folder of the percona xtraDB cluster 8.0.19 and then start the percona xtraDB cluster 8.0.19 ?
what if just one DB ?
can I just simply copy the fmklog folder from /var/data/mysql folder of the percona xtraDB cluster 5.7.x copy it to the respecitve path, e.g.: /var/data/mysql folder of the percona xtraDB cluster 8.0.19 and then start it by using command :
- rsync -Pavzxl /var/data/mysql/fmklog/. /var/data/mysql /fmklog
but for this both percona xtraDB cluster on both size has to stop right? please note that in the /var/data/mysql of target DB, the percona xtraDB cluster 8.0.19 , already has some data inside.
is it possible ?
I am not sure if we can do this to transfer DB between percona xtraDB cluster 5.7.x and percona xtraDB cluster 8.0.19?