导出数据库:
选择要导出的数据库右键 Dump Sql File 保存到本地。
导入:
cmd下cd 到mysql安装文件夹下
D:/> mysql -uroot -ppassword
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 18508
Server version: 5.1.22-rc Source distribution
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> use db //db为即将数据库文件的数据库名
Database changed
mysql> source D:/file.sql
导入成功!
本文介绍了如何通过右键点击选择数据库并使用DumpSqlFile功能将数据库导出到本地文件,以及如何在命令行界面中切换到指定的数据库并使用source命令加载.sql文件完成数据库的导入。
2285

被折叠的 条评论
为什么被折叠?



