hulaoxi

如何将数据库导入到本地MySQL

有两个方法:(1)在MySQL的客户端进行导入,比如:

http://jingyan.baidu.com/article/6dad507517c11aa123e36ea0.html

(2)方法:常用source 命令
进入mysql数据库控制台,如
mysql -u root -p
mysql>use 数据库
然后使用source命令,后面参数为脚本文件(如这里用到的.sql)
mysql>source d:/dbname.sql

经过对比:方法2省时省力,

 

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2021-05-16
  • 2021-12-13
  • 2021-05-13
  • 2022-12-23
  • 2021-06-15
  • 2021-03-29
猜你喜欢
  • 2021-11-03
  • 2021-12-10
  • 2021-11-17
  • 2021-06-05
  • 2021-05-05
  • 2021-11-27
相关资源
相似解决方案