Home > Database > Mysql Tutorial > 转载-mysql数据备份、回复、SQL文件中导入

转载-mysql数据备份、回复、SQL文件中导入

WBOY
Release: 2016-06-07 16:24:53
Original
1003 people have browsed it

转载--mysql数据备份、恢复、SQL文件中导入 备份: 请先用 mysqldump -u [user] -p [database_name] [dump_name] 如: mysqldump -u root -p database_name dump_name 再将 dump_name 复制到别台计算机, 恢复: 进入 mysql后 先建立一个 database_name , 然后再

转载--mysql数据备份、恢复、SQL文件中导入
备份:
请先用 mysqldump -u [user] -p [database_name] > [dump_name]
如: mysqldump -u root -p database_name > dump_name
再将 dump_name 复制到别台计算机,

恢复:
进入 mysql后 先建立一个 database_name , 然后再执行
mysql -u [user] -p [database_name]

从SQL文件中导入数据:
mysqldump -u root -p database_name > d:/test.sql
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template