31 - MySQL Point in Time Recovery Using Event Positions |

Sdílet
Vložit
  • čas přidán 18. 01. 2021
  • This Mysql tutorial explains the general idea of using the binary log to perform a point-in-time-recovery
    How to use and what is a binary log :
    • 23 - What is Binary Lo...
    • 24 - What is Binary Lo...
    • 25 - Extracting statem...
    • 26 - Extract Statement...
    #mysql #mysqldba #tutorial #PITR #recover
    Please Follow me on Social Media
    Linkedin: / mughees-ahmed-oracle-m...
    Twitter: / mughees52
    Facebook: / mughees52

Komentáře • 20

  • @rajataggarwal5818
    @rajataggarwal5818 Před rokem

    very good content.

  • @akshayghawade2550
    @akshayghawade2550 Před 10 měsíci

    Thank you so much your video is really helpful 👌👌

  • @mantootripathi7519
    @mantootripathi7519 Před 2 lety

    Good work

  • @pathaanzaarkhan2236
    @pathaanzaarkhan2236 Před 3 lety

    Thanks for sharing dear

  • @rajakumarchikkala8275
    @rajakumarchikkala8275 Před 3 lety

    Thank you very much for sharing Point-in-time recovery. It is very good tutorial. I liked it. I have small question here. If two of more databases in MySQL server and run mysqlbinlog command for Point-in-time recovery, will Binlog commands execute in all the respective databases? Means re-execute commands on other database if Binlog is having any transaction of other databases.
    If that is the case, could you please suggest me how to resolve it.
    Thanks in advance.

    • @mughees52
      @mughees52  Před 3 lety +1

      I took backup of only one database usually we take backup of all databases, and we will first restore that all databases backup and then apply bin log. bing log will have transection for every database so it will recover all databases even if you drop them all ...

  • @alaabadri2008
    @alaabadri2008 Před 3 lety

    Thanks for your good tutorial in my case I don't know what is the event itself but I know the date I need to go before it how I can do that

    • @mughees52
      @mughees52  Před 3 lety

      you use the options --start-datetime --stop-datetime Please refer to the documentation dev.mysql.com/doc/refman/8.0/en/mysqlbinlog.html

    • @alaabadri2008
      @alaabadri2008 Před 3 lety

      @@mughees52 I try it but specially when use --stop nothing happens no data return if you have worked example please share it

  • @filima-dba
    @filima-dba Před 2 lety

    Sir my database size it 500 GB and I started dump at 1am and it's completed at 4am.
    I did not use --master-data=2 or single transaction options.
    So I have to apply binary log from 1 am or from 4am.
    Please guide sir.

    • @mughees52
      @mughees52  Před 2 lety

      don't use mysqldump for backup use percona xtrabackup ..

  • @fahdbahoo1
    @fahdbahoo1 Před rokem

    if backup is taken without using --master-data=2, then how to get MASTER_LOG_FILE and MASTER_LOG_POS ?

    • @mughees52
      @mughees52  Před rokem +1

      Read the first 500 line it should be there

    • @fahdbahoo1
      @fahdbahoo1 Před rokem

      @@mughees52 Thanks for replying, i am checking

  • @audio3980
    @audio3980 Před 3 lety

    so, how are you goin to use mysqldmp for a 1TB table? you can't! show how you do this with physcial backups please!

    • @thiruardura
      @thiruardura Před 4 měsíci

      if you are using Oracle MySQL then you need to use MySQL Enterprise Backup. Or if you are using Percona then you have to use Xtra backup. This is my understanding. You can't use MySQL dump for large databases.

    • @audio3980
      @audio3980 Před 4 měsíci

      @@thiruardura 2 years later……..🤣