Check the location of data or temp files in MariaDB

Check the location of data files in MariaDB / MySQL

SHOW VARIABLES WHERE Variable_Name LIKE "%datadir"

Variable_name|Value                              |
-------------+-----------------------------------+
datadir      |C:\Program Files\MariaDB 10.6\data\|

select @@datadir;

@@datadir                          |
-----------------------------------+
C:\Program Files\MariaDB 10.6\data\|

Check the location of Temp files in MariaDB

SHOW VARIABLES WHERE Variable_Name LIKE "tmpdir"

Variable_name|Value                                         |
-------------+----------------------------------------------+
tmpdir       |C:\WINDOWS\SERVIC~1\MariaDB\AppData\Local\Temp|

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.