

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Where is the MySQL table data stored in Windows?
In order to know the location of MySQL table data, you can use the below syntax −
select @@datadir;
You can also use SHOW VARIABLES command for this. Following is the syntax −
show variables where Variable_name ='datadir';
Let us implement the above syntaxes to know where MySQL table stores data −
mysql> select @@datadir;
This will produce the following output −
+---------------------------------------------+ | @@datadir | +---------------------------------------------+ | C:\ProgramData\MySQL\MySQL Server 8.0\Data\ | +---------------------------------------------+ 1 row in set (0.00 sec)
Here is the alternate query to know where MySQL table data stored −
mysql> show variables where Variable_name ='datadir';
This will produce the following output −
+---------------+---------------------------------------------+ | Variable_name | Value | +---------------+---------------------------------------------+ | datadir | C:\ProgramData\MySQL\MySQL Server 8.0\Data\ | +---------------+---------------------------------------------+ 1 row in set (0.23 sec)
Now follow the above path to reach where MySQL table is stored. Following is the screenshot displaying the location for tables −
- Related Questions & Answers
- Where is MySQL bin directory located in Windows OS?
- Insert data in a table in MySQL stored procedure?
- Where is VKORG stored in SAP
- How to apply EXTRACT() function with WHERE Clause on the dates stored in MySQL table?
- How to repeat the values stored in a data column of MySQL table?
- How to select data from a table where the table name has blank spaces in MYSQL?
- What Information is Stored in the Symbol Table?
- Working with WHERE IN() in a MySQL Stored Procedure
- Where are the python modules stored?
- Where the PowerShell Modules are stored?
- Insert the data into Table C IF The data is not in Table B while Comparing to Table A in MySQL?
- How can we write MySQL stored procedure to select all the data from a table?
- MySQL Stored Procedure to create a table?
- How do we count the records from MySQL table where column holds duplicate/triplicates data?
- MySQL Stored procedure won't fetch the whole table?
Advertisements