» » » » » » » Installing WordPress: Configuring wp-config.php

Installing WordPress: Configuring wp-config.php

posted in: Installation | 0

wp-config.php

The file wp-config.php can be created manually, or automatically during the installation. Also, it can be edited when one or more data (especially database) are changed.

Looking ahead, the code you want to change is the following:

[html] define(‘DB_NAME’, ‘database_name_here’); // The name of the database

/** MySQL database username */
define(‘DB_USER’, ‘username_here’); // Your MySQL username

/** MySQL database password */
define(‘DB_PASSWORD’, ‘password_here’); // … And password

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’); 99% probability you will not need to change this value
[/html]

For manually configuration, go back to where you extracted the archive WordPress, rename the wp-config-sample.php file to wp-config.php.

Open the renamed file wp-config.php in your favorite text editor and fill in the following information, for the example above:

  • DB_NAME: The name of the database you created.
  • DB_USER: The user name you created for the database.
  • DB_PASSWORD: The password that you chose for the above database username.
  • DB_HOST: The host that you use for database (usually localhost, but not always).

Save the file.

Leave a Reply

Your email address will not be published. Required fields are marked *