AdBlock Detected

We provide high-quality source code for free. Please consider disabling your AdBlocker to support our work.

Buy me a Coffee

Saved Tutorials

No saved posts yet.

Press Enter to see all results

Where is my MySQL database on the server?

By pushpam abhishek
Listen to this article

Where is my MySQL database on the server?

Where is my MySQL database on the server?


Usually /var/lib/MySQL or /var/db/mysql directory used to store database and tales under UNIX like operating systems.
You can use the following command to locate MySQL data-dir:

On windows:
 
>mysqladmin variables | findstr "datadir" 

on Linux : 
>mysqladmin variables | grep datadir 

OR

>grep datadir /etc/my.cnf

Share this post

pushpam abhishek

About pushpam abhishek

Pushpam Abhishek is a Software & web developer and designer who specializes in back-end as well as front-end development. If you'd like to connect with him, follow him on Twitter as @pushpambhshk

Comments