Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 584 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 666 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
Query re. slave creation from physical backup

Hello,
Hoping all are well here on the forum.
I'm familiar with creating a slave database copy using mysqldump from master, including changing of IDs etc.
I'm now trying to create a slave using conventional file copy, NOT using mysql dump (for reasons of volume).
The creation of slaves using physical backups of mysql databases is not extensively covered unless you are using Xtrabackup or another tool. After creating a cold backup of my MYSQL primary database, and then restoring the databases under mysql matador that I wished, I started slave processes, but received an error concerning the file enumeration
table space id and flags are x and y, but in the InnoDB dictionary they are xx and yy
I did not restore the ibdata file, in hesitance that this was directly related to the (already setup, parameterised) slave database.
I will now try to restore ibdata also, but any advise on restores? I do not wish to blanket overwrite the config on the slave database. Sometimes it gets out of sync and we need to restore it.
Thanks in advance,
Cobert.
Answers
-
If you are using the transportable tables spaces you should be able to simply copy them from instance to instance.
Have you considered using the clone plugin which is extremely quick and designed for such cases?
Dave Stokes
MySQL Community Manager
-
Hello Dave,
This is using 5.7, so unfortunately does not use the clone process. Transportable tablespaces are not ideal, as there are hundreds of files.
The database is about 1TB, so takes days for logical import.I tried copying IBDATA and all replicated databases, but afterwards started getting errors relating to the innodb_table_stats, innodb_index_stats. And although the relay logs increase, exec_master_log_pos does not increase and no errors are apparent in the logfile.
I would rather just do a cold copy of the database, but I do not see details on creating a slave from a physical copy of master.
Thanks,
-
So my error here.
Once I overwrote all data (all the data directory, tmp folders etc), with the exception of the cnf file, this works fine. Xtrabackup is excellent for a fast binary copy of the prod db.