mysql数据库的备份与恢复
导出数据库:
终端执行命令(导出test数据库到当前目录)
mysqldump -uroot -p test >test.sql
导入数据库:
进入mysql,执行命令
source /root/test.sql (因为我导出的目录是/root)
导出数据库:
终端执行命令(导出test数据库到当前目录)
mysqldump -uroot -p test >test.sql
导入数据库:
进入mysql,执行命令
source /root/test.sql (因为我导出的目录是/root)
上一篇:oracle数据库常见问题汇总
下一篇:linux杀死进程方法
mysqldump -h主机名 -P端口 -u用户名 -p密码 (–database) 数据库名 > 文件名.sql备份MySQL数据库的命令mysqld
&n
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M