<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[MySQL数据的导出和导入-mysqldump ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 29 Dec 2009 05:46:46 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	MySQL环境变量设置，将%MySQL_HOME%下的MySQL Server 5.1&#92;bin放到Path下。<br/> <br/><br/>MySQL的mysqldump工具，基本用法是：&nbsp;&nbsp; <br/>shell&gt; mysqldump [OPTIONS] database [tables]&nbsp;&nbsp;<br/> <br/><br/>通过执行mysqldump --help，得到当前mysqldump版本支持的选项表。<br/>通过执行mysqldump –V，得到当前mysqldump版本。&nbsp;&nbsp;<br/> <br/><br/>几个常用的例子（在mysqldump Ver 10.13 Distrib 5.1.30, for Win32 (ia32)下测试通过）<br/>1.导出整个数据库<br/>mysqldump -u 用户名 -p 数据库名 &gt; 导出的文件名<br/>mysqldump -u root -p student &gt;d:&#92;student.sql<br/> <br/><br/>2.导出一个数据库结构<br/>mysqldump -u root -p -d --add-drop-table student &gt;d:&#92;student_structure.sql<br/>-d 没有数据 --add-drop-table 在每个create语句之前增加一个drop table<br/> <br/><br/>3.导出一个表<br/>mysqldump -u 用户名 -p 数据库名 表名&gt; 导出的文件名<br/>mysqldump -u root -p schoolproject student&gt;d:&#92;schoolproject_student.sql<br/> <br/><br/>4.导入数据库<br/>shell&gt; mysqladmin –u root –p create target_db_name<br/>shell&gt; mysql –u root –p target_db_name &lt; backup-file.sql<br/>就是:shell&gt; mysql 数据库名 &lt; 文件名<br/> <br/><br/>或者使用source 命令<br/>进入mysql数据库控制台，mysql -u root –p<br/> <br/><br/>mysql&gt;use 数据库<br/>然后使用source命令，后面参数为脚本文件（.sql文件）<br/>mysql&gt;source d:&#92;student.sql
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] MySQL数据的导出和导入-mysqldump ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>