Skip to content

Commit 5bf7321

Browse files
Merge pull request #209876 from VandhanaMehta/guidanceOnSessionVariable
Guidance on session variable
2 parents 9559cd0 + bf59fd1 commit 5bf7321

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/mysql/flexible-server/concepts-backup-restore.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ The estimated time for the recovery of the server depends on several factors:
215215
- The number of concurrent restore requests being processed in the target region
216216
- The presence of primary key in the tables in the database. For faster recovery, consider adding primary key for all the tables in your database.
217217

218+
**Will modifying session level database variables impact restoration?**
219+
Modifying session level variables and running DML statements in MySQL client session can impact the PITR (point in time restore) operation, as these modifications do not get recorded in binary log which is used for backup and restore operation. For example, [foreign_key_checks](http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_foreign_key_checks) is one such session level variable which if disabled for running a DML statement which violates the foreign key constraint will result in PITR (point in time restore) failure. The only workaround in such a scenario would be to select a PITR time which is earlier than the time at which [foreign_key_checks](http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_foreign_key_checks) were disabled. Our recommendation is to NOT modify any session variables for a successful PITR operation.
218220

219221
## Next steps
220222

0 commit comments

Comments
 (0)