Home >Database >Mysql Tutorial >Linux下mysql数据库的导入导出操作_MySQL

Linux下mysql数据库的导入导出操作_MySQL

WBOY
WBOYOriginal
2016-06-01 13:41:171121browse

bitsCN.com
Linux下mysql数据库的导入导出操作 1、导入数据库在命令行下输入:mysql -u username -p test  2.1、导出整个数据库:mysqldump -u username -p test > /home/data/test.sql说明:username是数据库用户名,test源数据库,回车,输入数据库密码,就进行导入操作了!目标文件路径为/home/data/
 2.2、导出数据库中某张表:mysqldump -u username -p test documents > /home/data/test.sql说明:导出数据库test中的documents表到目标目录。 bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn