Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the exact location of MySQL database tables in XAMPP folder?

I have a MySQL database and I want to know the exact location where this data actually stored in the XAMPP folder, I went to this file location to try to get the information:

xampp -> mysql -> data ->

Here I found a separate folder for each of my databases and within these folders I saw files stored with the .frm format (FRM FILE).

When I copied my desired database with all tables in .frm format and try to use them on another PC, I was given an empty database of the same name.

Where are the data files for the database kept on the local server?

like image 299
Arif Avatar asked Mar 11 '12 06:03

Arif


People also ask

Where are MySQL tables stored xampp?

1 Answer. You will get all databases at the "xampp/var/mysql". You can copy the complete folder to the new setup and it will show you all databases.

Where are MySQL tables located?

To get a list of the tables in a MySQL database, use the mysql client tool to connect to the MySQL server and run the SHOW TABLES command. The optional FULL modifier will show the table type as a second output column.

Where do I put database files in xampp?

Step 2: Add Files and Database to XAMPP The first step is to copy the files from (C:\Users\##YOURNAME##\Desktop\Backup\) into your XAMPP htdocs folder, inside of a test folder (C:\xampp\htdocs\test\). With the XAMPP Control Panel open, start Apache and MySQL, then click the Admin tab on MySQL.

Where are phpMyAdmin tables stored?

phpMyAdmin is just an interface (written in PHP) to communicate with MySQL. If you have installed MySQL on linux, the default data storage directory will be /var/lib/mysql, unless you have configured it manually for some other directory.


3 Answers

For Mac, your database files are located at:

/Applications/XAMPP/xamppfiles/var/mysql 

You might need admin permissions to access or delete your files.

like image 88
Alfonse Avatar answered Sep 29 '22 02:09

Alfonse


Your database is in this directory:
C:\xampp\mysql\data

like image 35
Shaktisinh Jadeja Avatar answered Sep 29 '22 04:09

Shaktisinh Jadeja


Rather late I know, but you can use SELECT @@datadir to get the information.

Happy file huntin' SO community :)

This is how it looks when ran in phpmyadmin: enter image description here

like image 42
Can O' Spam Avatar answered Sep 29 '22 02:09

Can O' Spam