Home  >  Q&A  >  body text

sqlserver - mysql如何将数据库文件备份出来?

以前用的sqlserver是mdf、ldf,那么mysql是什么文件格式?应该如何导出或者叫备份出来?

阿神阿神2743 days ago694

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:57:15

    If it is Linux, you can use mysqldump
    If it is Windows, you can use various tools to export the database

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:57:15

    mysqldump -hx.x.x.x -uxxxx -pxxxx databasename > backdata.sql

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:57:15

    If you want to export the database using the web interface, you can consider using phpmyadmin. If it is a GUI, it is recommended to use mysql workbeach. If it is the command line, use the official mysqldump. If you want to export through a script, it depends on the client API of the language you use

    reply
    0
  • Cancelreply