WordPress.org

Ready to get started?Download WordPress

Forums

Aren't localhost and MySQL mutually exclusive? (2 posts)

  1. boydyboy
    Member
    Posted 5 years ago #

    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?)

  2. moshu
    Member
    Posted 5 years ago #

    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:
    Installing_WordPress#Installing_WordPress_on_your_own_Computer

Topic Closed

This topic has been closed to new replies.

About this Topic