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

查看:76
本文介绍了从 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.

推荐答案

你有两种可能的方法来做到这一点

You have 2 possible ways to do that

  • 通过命令行

备份:#mysqldump -u root -p[root_password] [database_name] >转储文件名.sql

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

restore:# mysql -u root -p[root_password] [database_name] <转储文件名.sql

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

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

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