Database backup and restore

1.1.1 Database backup
1.1.1.1 The first step: open the command line window of cmd
mysqldump -u root -p web_test1 >C:/web_test1.sql
Database backup and restore
1.1.2 Database restoration 1.1.2.1 The first restoration method:
l Section Step 1: Create a database inside the database server:
Database backup and restore
l Step 2: In the command line window
mysql -u root -p web_test1 < C:/web_test1.sql
Database backup and restore
1.1.2.2 The second way to restore
l Step 1: Inside the database server Create a database:
Database backup and restore
l Step 2: Switch to the database and restore it using the source command
Database backup and restore

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324984377&siteId=291194637