自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何實(shí)現(xiàn)MySQL 數(shù)據(jù)庫導(dǎo)入與導(dǎo)出?

數(shù)據(jù)庫 MySQL
今天我們主要向大家闡述的是MySQL 數(shù)據(jù)庫導(dǎo)入與導(dǎo)出的實(shí)際操作步驟,以及在實(shí)際操作中要用到的實(shí)際應(yīng)用代碼的描述。

此文章主要向大家描述的是MySQL 數(shù)據(jù)庫導(dǎo)入與導(dǎo)出的實(shí)際操作流程,我們是以實(shí)例的方式來引出其實(shí)際操作步驟,假如你對其實(shí)際操作有興趣了解的話,你就可以瀏覽以下的文章了。望你會有所收獲。

1.導(dǎo)出整個(gè)數(shù)據(jù)庫

MySQLdump -u 用戶名 -p 密碼 數(shù)據(jù)庫名 > 導(dǎo)出的文件名

  1. MySQLdump -u jason -p jason roomdatadb> roomdatadb.sql 

2.導(dǎo)出一個(gè)表

MySQLdump -u 用戶名 -p 密碼 數(shù)據(jù)庫名 表名> 導(dǎo)出的文件名

  1. MySQLdump -u jason -p jason roomdatadb t_roomdata> t_roomdata.sql 

3.導(dǎo)出一個(gè)數(shù)據(jù)庫結(jié)構(gòu)

  1. MySQLdump -u jason -p jason -d --add-drop-table roomdatadb> d:\roomdatadb.sql 

-d 沒有數(shù)據(jù) --add-drop-table 在每個(gè)create語句之前增加一個(gè)drop table

4.導(dǎo)入數(shù)據(jù)庫

常用source 命令

進(jìn)入MySQL數(shù)據(jù)庫控制臺,

如MySQL -u root -p

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

然后使用source命令,后面參數(shù)為腳本文件(如這里用到的.sql)

  1. MySQL>source d:\wcnc_db.sql 

可參看 MySQL數(shù)據(jù)的導(dǎo)入工具:MySQLdump

以上的相關(guān)內(nèi)容就是對MySQL 數(shù)據(jù)庫導(dǎo)入導(dǎo)出的介紹,望你能有所收獲。

MySQL 數(shù)據(jù)庫導(dǎo)入

上述的相關(guān)內(nèi)容就是對MySQL 數(shù)據(jù)庫導(dǎo)入與導(dǎo)出的描述,希望會給你帶來一些幫助在此方面。

原文標(biāo)題:MySQL 數(shù)據(jù)庫導(dǎo)入導(dǎo)出

連接:http://www.cnblogs.com/jason-one/archive/2009/03/13/1410778.html

【編輯推薦】

  1. 忘記MySQLroot密碼的解決方案
  2. 對MySQL字符集的認(rèn)識
  3. MySQL 數(shù)據(jù)庫命令的實(shí)際操作流程
  4. jsp MySQL 中的中文問題的實(shí)際解決
  5. .NET訪問MySQL數(shù)據(jù)庫的經(jīng)驗(yàn)漫談
責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2010-06-02 11:34:23

MySQL 數(shù)據(jù)庫導(dǎo)入

2010-07-21 14:17:36

SQL Server數(shù)

2021-11-12 15:42:34

MySQL數(shù)據(jù)庫權(quán)限

2010-07-21 14:11:36

SQL Server

2011-04-13 09:03:58

Oracle數(shù)據(jù)庫導(dǎo)入導(dǎo)出

2011-03-17 13:23:08

數(shù)據(jù)導(dǎo)入導(dǎo)出

2012-02-21 10:10:16

2011-04-15 10:37:53

Oracle導(dǎo)入導(dǎo)出語法

2010-11-09 17:19:49

SQL Server導(dǎo)

2011-03-21 15:17:35

LAMPMySQL

2009-06-05 11:55:00

數(shù)據(jù)庫用戶管理數(shù)據(jù)導(dǎo)入導(dǎo)出

2011-05-16 14:17:31

MySQL導(dǎo)入導(dǎo)出大量數(shù)據(jù)

2010-05-19 15:01:14

MySQL數(shù)據(jù)導(dǎo)入

2011-07-28 17:02:59

MYSQL數(shù)據(jù)庫跨表更新數(shù)據(jù)并合

2011-05-13 09:42:21

2011-04-08 10:43:08

mysql數(shù)據(jù)access數(shù)據(jù)庫

2011-07-27 15:28:10

MySQL數(shù)據(jù)庫字符編碼集

2011-04-13 10:09:50

Oracle數(shù)據(jù)泵導(dǎo)入導(dǎo)出

2010-05-21 17:51:58

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

2011-04-01 14:51:37

Oracle數(shù)據(jù)庫導(dǎo)入導(dǎo)出
點(diǎn)贊
收藏

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