如何对数据库进行备份

对数据库进行备份处理时不用进行登陆 mysql

mysqldump -u root -p test >c:/test.sqlsql

enter password : root 数据库

这样就能够对数据库 test进行备份 到c盘的test,sql 文件里3d

 

root 是数据库用户名 也是密码blog

如何对数据进行回复test

MySQL -u root -p test < c:/test.sql 登录

password root 密码

这样就能够了im

恢复时须要建立一个空的数据库d3

 

再次对数据库进行查询时  表格 就会出来

相关文章
相关标签/搜索