Wordpress and Connecting to Database

Posted on 2011-04-21
Last Modified: 2012-05-11

I'm trying to figure out why I cannot connect to my wordpress database.  

I'm trying to connect using Sequel Pro.

I open wp-config to gather my login credentials, but they don't work.  For 'DB_HOST' it says 'localhost', and this confuses me, as the database that is on my localhost isn't the same database info that I've previously entered through my wordpress site.

So how do I find out the path to my database if not in wp-config?  I'm new to Wordpress and it's been a while since using SQL.

Thanks in advance!
Question by:Adam
    LVL 70

    Accepted Solution

    The information in wp-config has to be accurate if your site is working :)

    LVL 1

    Author Comment

    Yes, I think I understand the situation.  Localhost was relative to the server, not my mac I'm using.  If I wanted to know the absolute location I suppose I'd have to call my hosting provider and find out.  Thanks anyways!
    LVL 1

    Author Closing Comment

    The expert confirmed an aspect of the situation, and I figured out the rest myself

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
    The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now