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

Avatar
  • Answered
This is the /** MySQL hostname */
define('DB_HOST', 'localhost/markja5_LoveFood');

I have add the above localhost syntax is this correct?
Avatar
JacobIMH
Hello markwj, and thanks for your question. You only need to add the MySQL hostname of localhost for that DB_HOST variable. There are 4 places in total where you will need to configure the WordPress database settings, and there is a separate DB_NAME variable that you need to set for your database name. You can take a look at our article on configuring WordPress to see the wp-config.php settings that are needed. Please let us know if you have any other questions! - Jacob