Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exporting MySQL database from XAMPP [closed]

Tags:

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.

like image 753
199user911 Avatar asked Feb 17 '13 16:02

199user911


People also ask

Why MySQL is stopping in XAMPP?

In some cases, the problem appears after users reinstall XAMPP on their computer. The reason this happens is when the MySQL files are corrupted or damaged in which case you will have to use the backup folder that can be found in the mysql directory.


2 Answers

Exporting MySQL database from xampp

The command line :

  1. First of all open command prompt
  2. Syntax:-

Import Database :- D:/xampp/mysql/bin/mysql – u root -p databasename < D:/test.sql (sql file name)

Export Database :- D:/xampp/mysql/bin/mysqldump -u root -p databasename > D:/text.sql(sql file name)

like image 141
Pritam Chaudhari Avatar answered Oct 18 '22 01:10

Pritam Chaudhari


You have 2 possible ways to do that

  • by command line

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

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

  • or use phpmyadmin (usually installed with XAMP), or something like that and export it from browser
like image 45
Stepo Avatar answered Oct 17 '22 23:10

Stepo