title: What is DataDir in MySQL?
body: <p>I know the usage of @@datadir in MySQL queries such as;</p>
  
  <pre><code>Select @@datadir;
  </code></pre>
  
  <p>It outputs something like that:</p>
  
  <pre><code>C:\xampp\mysql\data\
  </code></pre>
  
  <p>But what the heck is it? What does it do? Is there any special meaning about directory data of MySQL? Why is there a specific command in MySQL like @@datadir?</p>