偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

mysqldump備份數(shù)據(jù)庫實(shí)現(xiàn)步驟

運(yùn)維 系統(tǒng)運(yùn)維
看到dump備份這個(gè)名詞 ,是什么意思呢?DUMP的意思就是:『電腦』將內(nèi)儲(chǔ)資料直接傳送的結(jié)果。而mysqlDUMP備份通常是除了數(shù)據(jù)本身外,還會(huì)把相關(guān)的底層程序也同時(shí)備份,是一種比較全面的備份方式。

備份數(shù)據(jù)庫是不能靠拷貝的方法,因?yàn)橐坏珨?shù)據(jù)庫發(fā)生損壞,拷貝他的文件也是沒有用??!下面介紹一種用DOS命令的方法備份和恢復(fù)數(shù)據(jù)庫:

一、mysqldump備份:
建立新的空白表= 清空表=初始化  注意大小寫:mysql> SHOW DATABASES;//命令字一般要大寫!
1=備份數(shù)據(jù)庫結(jié)構(gòu)=C:\Documents and Settings\user>mysqldump -u root -proot -d --opt new_db>c:\3456.sql//無數(shù)據(jù)的空表
2=進(jìn)入MySql=C:\Documents and Settings\user>mysql -u root -proot
3=刪除數(shù)據(jù)庫=mysql> DROP DATABASE new_db;
4=建新數(shù)據(jù)庫=mysql> CREATE DATABASE new_db;
5=用數(shù)據(jù)庫=mysql> use new_db
6=導(dǎo)入sql文件=mysql> source c:\3456.sql

二、 數(shù)據(jù)恢復(fù):
1=備份數(shù)據(jù)庫和數(shù)據(jù)=C:\Documents and Settings\user>mysqldump -u root -proot --opt new_db >c:\an.sql//后面不待分號(hào)
2=進(jìn)入MySql=C:\Documents and Settings\user>mysql -u root -proot
//mysql> show databases;
3=刪除數(shù)據(jù)庫=mysql> drop database new_db;
4=建新數(shù)據(jù)庫=mysql> create database new_db;
5=用數(shù)據(jù)庫=mysql> use new_db
6=導(dǎo)入sql文件=mysql> source c:\3456.sql

【編輯推薦】

  1. MySQL數(shù)據(jù)庫備份基礎(chǔ)知識(shí)匯總
  2. MySQL常用技巧都包括哪些?
  3. 對(duì)MySQL數(shù)據(jù)庫中的命令備忘描述
  4. MySQL轉(zhuǎn)義字符的實(shí)際應(yīng)用
  5. 如何用PHP來實(shí)現(xiàn)MySQL備份?
責(zé)任編輯:chenqingxiang 來源: IT168
相關(guān)推薦

2010-05-26 09:01:43

mysqldump備份

2023-12-07 15:12:52

2011-03-04 14:39:03

MySQL數(shù)據(jù)庫mysqldump

2011-08-22 16:03:30

linuxVPS備份數(shù)據(jù)庫

2010-08-09 16:46:05

DB2備份

2010-10-12 17:23:40

MySQL命令行

2025-06-12 07:13:00

數(shù)據(jù)庫MySQLPump

2024-04-12 13:57:51

2010-07-16 10:29:02

SQL Server

2023-12-07 15:09:23

2020-03-17 08:29:29

數(shù)據(jù)庫備份技術(shù)

2010-05-13 14:37:26

MySQL備份數(shù)據(jù)庫

2010-05-31 09:50:13

MySQL數(shù)據(jù)庫

2010-11-10 13:54:27

SQL SERVER自

2010-10-26 13:33:08

Oracle自動(dòng)備份

2010-06-04 09:58:03

MySQL數(shù)據(jù)庫備份

2010-06-09 11:32:51

MySQL數(shù)據(jù)庫備份

2010-08-27 09:59:51

SQL Server

2022-10-24 00:33:59

MySQL全局鎖行級(jí)鎖

2010-08-12 09:06:30

DB2數(shù)據(jù)庫自動(dòng)備份
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)