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

Simple Operation of MySQL data backup and recovery

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

Share

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

The following is followed by the author to understand the simple operation of MySQL data backup and recovery. I believe everyone will benefit a lot after reading it. The text is not much in essence. I hope the simple operation of MySQL data backup and recovery is what you want.

# data backup

Enter the Super Admin

Sudo-s

Enter the mysql library directory

Cd / var/lib/mysql

Run the mysqldump command

Mysqldump-uroot-p database name > ~ / Desktop/ backup file. Sql

Enter the password for mysql when prompted

# data recovery

Connect to mysql and create a database

To exit the connection, execute the following command

Mysql-uroot-p database name < ~ / Desktop/ backup file. Sql

Enter the mysql password when prompted

After reading this article on the simple operation of MySQL data backup and recovery, many readers will want to know more about it. For more industry information, you can 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