Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am pretty new to managing servers, right now I have trouble to find the location of our database. I see the DB in phpmyadmin, is there a way to find the real location using phpmyadmin ?

Running ubuntu 12.04 server

share|improve this question

1 Answer 1

First, get rid of phpMyAdmin. It's just a giant security hole, and doesn't even have a very pretty interface. You'll find that almost no professional DBAs or system administrators will go anywhere near it. It's not even really necessary, since the basics of SQL aren't hard to pick up.

Second, the database files themselves are in MySQL's datadir, so just check that in /etc/my.cnf or ask MySQL where it is.

SHOW VARIABLES LIKE 'datadir';
share|improve this answer
    
I am using the PhpMyadmin only on my private virtual machine, of course I understand that this is a big security risk, but anyway I don't understand why my Question is downvoted without giving me some info why. I am learning. –  RayofCommand Feb 10 at 13:53
    
You will have to ask the people who downvoted your question. I am not a mind reader! –  Michael Hampton Feb 10 at 13:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.