Tables missing from MySQL database after removing then restoring the mysql data direcoryHow to change data...

Translation needed for 130 years old church document

Non-Cancer terminal illness that can affect young (age 10-13) girls?

Converting very wide logos to square formats

Does the ditching switch allow an A320 to float indefinitely?

How to write cases in LaTeX?

Why did Luke use his left hand to shoot?

In harmony: key or the flow?

How much mayhem could I cause as a fish?

Why do all the books in Game of Thrones library have their covers facing the back of the shelf?

Why is 'diphthong' pronounced the way it is?

What makes papers publishable in top-tier journals?

Does an Eldritch Knight's Weapon Bond protect him from losing his weapon to a Telekinesis spell?

Count repetitions of an array

What's after EXPSPACE?

Broad Strokes - missing letter riddle

Should I cite R or RStudio?

What to do with threats of blacklisting?

Is there a verb that means to inject with poison?

How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?

How big is a framed opening for a door relative to the finished door opening width?

Reading Mishnayos without understanding

Will rerolling initiative each round stop meta-gaming about initiative?

What can I do to encourage my players to use their consumables?

What is the wife of a henpecked husband called?



Tables missing from MySQL database after removing then restoring the mysql data direcory


How to change data location on UbuntuMySQL InnoDB logfiles resized - review mysql-err.log for potential problemsIssue after moving the ib_logfile1 and ib_logfile0 filesMoving mysql datadir cause info: checking for tables which need an upgradeMoving datadir OK start, but socket error for mysql clientMySQL does not start - Ubuntu 14.04 LTS after migration to new diskMySQL innodb_log_file_size change is not being recognizedMySQL explain results different after adding and then removing indexxtrabackup doesn't copy the binary log files (mysql-bin.xxxxx) shall i copy them manually? [solved]unable to communicate sql node with management-server













0















I Carried out the following operations.



make mysqldump of testdb



# Stop service
/etc/init.d/mysql stop
# Create copy of directory
cd /var/lib
cp -R mysql mysql.backup
# Delete datafile on disk
rm -rf mysql/testdb
# Start service
/etc/init.d/mysql start


At this stage I was going to import testdb again from the mysqldump however we wanted to roll back for an unrelated reason so I restored the mysql file



/etc/init.d/mysql stop
rm -rf mysql/
cp -R mysql.backup mysql
# Restore ownership and permissions
chown -R mysql:mysql mysql
chmod -R 700 mysql


At this point testdb shows up if I run show databases; and it shows tables but doesn't appear to contain data any more.



Is this recoverable or am I wasting my time? I have the option of refreshing the db from prod









share







New contributor




Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I Carried out the following operations.



    make mysqldump of testdb



    # Stop service
    /etc/init.d/mysql stop
    # Create copy of directory
    cd /var/lib
    cp -R mysql mysql.backup
    # Delete datafile on disk
    rm -rf mysql/testdb
    # Start service
    /etc/init.d/mysql start


    At this stage I was going to import testdb again from the mysqldump however we wanted to roll back for an unrelated reason so I restored the mysql file



    /etc/init.d/mysql stop
    rm -rf mysql/
    cp -R mysql.backup mysql
    # Restore ownership and permissions
    chown -R mysql:mysql mysql
    chmod -R 700 mysql


    At this point testdb shows up if I run show databases; and it shows tables but doesn't appear to contain data any more.



    Is this recoverable or am I wasting my time? I have the option of refreshing the db from prod









    share







    New contributor




    Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I Carried out the following operations.



      make mysqldump of testdb



      # Stop service
      /etc/init.d/mysql stop
      # Create copy of directory
      cd /var/lib
      cp -R mysql mysql.backup
      # Delete datafile on disk
      rm -rf mysql/testdb
      # Start service
      /etc/init.d/mysql start


      At this stage I was going to import testdb again from the mysqldump however we wanted to roll back for an unrelated reason so I restored the mysql file



      /etc/init.d/mysql stop
      rm -rf mysql/
      cp -R mysql.backup mysql
      # Restore ownership and permissions
      chown -R mysql:mysql mysql
      chmod -R 700 mysql


      At this point testdb shows up if I run show databases; and it shows tables but doesn't appear to contain data any more.



      Is this recoverable or am I wasting my time? I have the option of refreshing the db from prod









      share







      New contributor




      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I Carried out the following operations.



      make mysqldump of testdb



      # Stop service
      /etc/init.d/mysql stop
      # Create copy of directory
      cd /var/lib
      cp -R mysql mysql.backup
      # Delete datafile on disk
      rm -rf mysql/testdb
      # Start service
      /etc/init.d/mysql start


      At this stage I was going to import testdb again from the mysqldump however we wanted to roll back for an unrelated reason so I restored the mysql file



      /etc/init.d/mysql stop
      rm -rf mysql/
      cp -R mysql.backup mysql
      # Restore ownership and permissions
      chown -R mysql:mysql mysql
      chmod -R 700 mysql


      At this point testdb shows up if I run show databases; and it shows tables but doesn't appear to contain data any more.



      Is this recoverable or am I wasting my time? I have the option of refreshing the db from prod







      mysql linux mysql-5.7 recovery





      share







      New contributor




      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      Simon MerrickSimon Merrick

      1011




      1011




      New contributor




      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Simon Merrick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Simon Merrick is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230724%2ftables-missing-from-mysql-database-after-removing-then-restoring-the-mysql-data%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Simon Merrick is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Simon Merrick is a new contributor. Be nice, and check out our Code of Conduct.













          Simon Merrick is a new contributor. Be nice, and check out our Code of Conduct.












          Simon Merrick is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230724%2ftables-missing-from-mysql-database-after-removing-then-restoring-the-mysql-data%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

          Always On Availability groups resolving state after failover - Remote harden of transaction...

          Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...