InMotion Hosting Support Center

What is the MySQL hostname for the wp-config.php entry

Category: Wordpress

markwj
Asked:
2012-12-24 5:01 pm EST

Hits: 7,699
This is the /** MySQL hostname */
define('DB_HOST', 'localhost/markja5_LoveFood');

I have add the above localhost syntax is this correct?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JacobIMH
9,968 Points
2012-12-24 5:38 pm EST
Hello markwj, and thanks for your question.

You only need to add the MySQL hostname of <strong>localhost</strong> for that <strong>DB_HOST</strong> variable. There are 4 places in total where you will need to configure the WordPress database settings, and there is a separate <strong>DB_NAME</strong> variable that you need to set for your database name.

You can take a look at our article on <a href="http://www.inmotionhosting.com/support/edu/wordpress/migrating-wordpress-inmotion-hosting/configuring-wordpress-after-a-migration#editing-the-wpconfigphp-file" target="_blank">configuring WordPress</a> to see the <strong>wp-config.php</strong> settings that are needed.

Please let us know if you have any other questions!

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!