Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Realizing the backup method of mysql Database

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

I do not know if you have any understanding of similar articles on the implementation of mysql database backup methods, today I am here to give you a brief introduction. If you are interested, let's take a look at the text. I believe you will gain something after reading the method of mysql database backup.

Create a new bak file and add the following code:

@ echo mysqldump hot backup data. Storage location: d:\ bak_ current time

@ echo off

C:

Cd D:\ mysql\ MySQL Server 5.5\ bin

Set year=%date:~0,4%

Set month=%date:~5,2%

Set day=%date:~8,2%

Set filename_db=bak_%year%%month%%day%_db.sql

Mysqldump-h227.0.0.1-uroot-plu-- port=3306-- opt-R db-e-max_allowed_packet=16777216-- net_buffer_length=16384 > E:\ backup\%

Filename_tdxdb%

@ echo on

@ echo mysql backup completed

Pause

What do you think of this article after reading the implementation of mysql database backup method? If you want to know more about it, you can continue to follow our industry information section.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report