从XAMPP导出MySQL数据库 [英] Exporting MySQL database from XAMPP

查看:500
本文介绍了从XAMPP导出MySQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将MySQL数据库发送给我的网站.我已经在XAMPP中完成了网站和MySQL数据库,但不知道如何发送数据库.

I need to send my website with the MySQL database. I have done the website and MySQL database in XAMPP but don’t know how to send the database.

推荐答案

您有2种可能的方法

  • 通过命令行

备份:#mysqldump -u root -p [root_password] [数据库名称]> dumpfilename.sql

backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql

还原:#mysql -u root -p [root_password] [数据库名称]< dumpfilename.sql

restore:# mysql -u root -p[root_password] [database_name] < dumpfilename.sql

  • 或使用phpmyadmin(通常与XAMP一起安装)或类似的方法,然后从浏览器中将其导出
  • 这篇关于从XAMPP导出MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆