Where is mysql data stored?

Where is mysql data stored?

MySQL database storage location:

1. If MySQL uses the MyISAM storage engine, the database file types include .frm, .MYD, and .MYI. The default storage location is

C:\Documentsand Settings\AllUsers\Application Data\MySQL\MySQL Server 5.1\data

2. If MySQL uses the InnoDB storage engine, the database file types include .frm, ibdata1, and .ibd, and there are two storage locations.

The default location for .frm files is

C:\Documents and Settings\All Users\ApplicationData\MySQL\MySQL Server 5.1\data, ibdata1, .ibd

The default location for the file is the data folder under the MySQL installation directory.

Knowledge point expansion:

How to view the storage location of MySQL data files

We may have a question: After we install MySQL locally (on our own computer), we create many databases and tables and store a lot of data, but where are these contents stored? In particular, when we need to directly operate these data files, we search the entire computer but cannot find where the MySQL data files are. This is a bit annoying!

Here, I will teach you a very simple method to immediately locate the storage location of MySQL data files, that is, type the following command in the MySQL client:

show global variables like "%datadir%";

MySQL data files are stored in the Data directory. As for whether you want to check a specific database or table next, it depends on your mood!

However, you may still have a question. We have found that the MySQL data files are in the ProgramData directory of the C drive, but we have searched the entire C drive but still cannot find the ProgramData folder. Why is that? The answer is: by default, the ProgramData folder is hidden.

As for how to display hidden folders, I believe everyone has already done it well!

This is the end of this article about where MySQL data is stored. For more information about where MySQL data is stored, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed steps for migrating the data folder of the MySQL database
  • Specific steps to change the storage location of the Mysql database

<<:  JavaScript file loading and blocking issues: performance optimization case study

>>:  Comparison between Redis and Memcache and how to choose

Recommend

A brief discussion on why daemon off is used when running nginx in docker

I'm very happy. When encountering this proble...

Should I use Bootstrap or jQuery Mobile for mobile web wap

Solving the problem Bootstrap is a CSS framework ...

Implementation of deploying war package project using Docker

To deploy war with Docker, you must use a contain...

Ideas and codes for implementing waterfall flow layout in uniapp applet

1. Introduction Is it considered rehashing old st...

Example analysis of mysql stored procedure usage

This article describes the usage of MySQL stored ...

Detailed explanation of Nodejs array queue and forEach application

This article mainly records the problems and solu...

Vue elementUI implements tree structure table and lazy loading

Table of contents 1. Achieve results 2. Backend i...

MySQL 8.0.22.0 download, installation and configuration method graphic tutorial

MySQL 8.0.22 download, installation and configura...

Bootstrap 3.0 study notes for beginners

As the first article of this study note, we will ...

mysql-8.0.17-winx64 deployment method

1. Download mysql-8.0.17-winx64 from the official...

Analysis of MySQL lock wait and deadlock problems

Table of contents Preface: 1. Understand lock wai...

Docker uses root to enter the container

First run the docker container Run the command as...

How to install Element UI and use vector graphics in vue3.0

Here we only focus on the installation and use of...

A Deeper Look at SQL Injection

1. What is SQL injection? Sql injection is an att...