Database backup and recovery teaching case

Environment description: MySQL version 5.5.48 in Windows environment, only for teaching demonstration

  1. In order to make the teaching effect more intuitive, it is recommended to switch to the desktop first in the terminal window;
    Insert picture description here
  2. Execute the mysql backup command (a small episode of CNOOC, which will be interpreted later). The interpretation of the
    Insert picture description here
    small episode:
    Since the database has been operated in the Linux environment during the previous development process, I have developed the habit of adding ";" at the end, but forgot this The side is MySQL version 5.5.48. I'm joking here. Just be happy. Of course, remove the ";" from the end to solve the problem; the
    rendering is as follows: I have reached my desktop, and the backup is complete;
    Insert picture description here
  3. The next step is to link into the MySQL database, create a new database, and then exit MySQL
    Insert picture description here
  4. For database recovery, you need to execute the following commands
    Insert picture description here
  5. Enter the relevant mysql database in China and confirm that the data is restored successfully.
    Insert picture description here
    Remarks: This case is a teaching case demonstration and is not used as a professional technical guide. If it is helpful to you, please bookmark, like, and follow.

Guess you like

Origin blog.csdn.net/qq_41475067/article/details/112028094