Support » Installing WordPress » Aren’t localhost and MySQL mutually exclusive?

  • boydyboy


    I know I need the MySQL database to power my WordPress blog.

    The only place I know of to get MySQL database is a non-local server. (Aren’t all servers non-local?)

    The file wp-config.php reads as follows:
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    The way I understand it, there is a 100% chance that I need to change “localhost” to something non-local.
    Why the contradiction? Or am I confused about something?

    Is it possible to install & design a wordpress blog locally without actually “powering” it with the My SQL? (I MySQL get from a non-local server?)

Viewing 1 replies (of 1 total)
  • moshu


    Yes, you are confused.
    1. Local installation still requires a MySQL database.
    2. “localhost” is relative to the server where your WP is installed. If your host has the database set up that is available from the same location…. then it is ‘localhost’

    For installing it locally for design and testing, see:

Viewing 1 replies (of 1 total)
  • The topic ‘Aren’t localhost and MySQL mutually exclusive?’ is closed to new replies.