In What DIRECTORY can I find the Wordpress database files?

Discussion in 'WordPress' started by sgooey, May 20, 2012.

  1. #1
    This is a question for Wordpress experts.

    I have a regular Wordpress blog hosted on Hostgator
    and I can't find where the database is.
    I've been looking all over and I can't find it.
    I'm not talking about the Wordpress .php or .css files.

    In What specific DIRECTORY can I find the Wordpress DATABASE file(s)?

    Isn't it a file? What's the filename?
     
    sgooey, May 20, 2012 IP
  2. breeville

    breeville Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It will be in your dbadmin. Its a sql file.
     
    breeville, May 20, 2012 IP
  3. 5Twenty

    5Twenty Peon

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You might now have access to that if you are on a shared server.

    Usually you will find them in the root folder under var/lib/mysql/

    Under that directory every database will have a directory and every table within the db will have a set of files. If you want to make changes tho, you are better off logging into phpmyadmin.

    Hope this helps
     
    5Twenty, May 21, 2012 IP
  4. raoraj

    raoraj Well-Known Member

    Messages:
    849
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #4
    if you are using a Linux hosting then you need to use PHPmyadmin to get database file/backup
    for backup you can use some wordpress plugin
     
    raoraj, May 21, 2012 IP
  5. sgooey

    sgooey Peon

    Messages:
    473
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can find that file. This is a working WP website.
    Do you know where the WP database files and directory is at?

    test wp directory.jpg
     
    sgooey, May 21, 2012 IP
  6. raoraj

    raoraj Well-Known Member

    Messages:
    849
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #6
    which hosting you are using?
    ask their support, they will guide you
    it seems that you are new to the hosting world!
     
    raoraj, May 21, 2012 IP
  7. fixyourserver

    fixyourserver Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #7
    Why do you need access to the database files? They aren't human readable and you would need to use mysql or phpmyadmin to read them. Further, if you use InnoDB for any of your WordPress tables and you did manage to get your files that are located in /var/lib/mysql (you do not have access to this directory so don't try to access it via FTP) you would be missing content as it's stored in the innodb shared table space.

    From within cPanel you can create human-readable sql backups.
     
    fixyourserver, May 24, 2012 IP
  8. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #8
    If you have access to cPanel, which is normal with hostgator, from the main cPanel page find phpMyAdmin and click on it. Then find the database which correspnds to your wordpress site (to find: open wp-config.php in filemanager and get the db number/name) select the db, then click export, you will be able to download it in a .zip folder.
     
    iMarcus, May 24, 2012 IP