If your host uses an alternate port number for your database you’ll need to change the DB_HOST value in the wp-config.php file to reflect the alternate port provided by your host.įor localhost: define( 'DB_HOST', '127.0.0.1: 3307' )
How to use codex files install#
If the install fails, contact your web hosting provider. If you are unsure, try installing with the default value of ‘localhost’ and see if it works. Note: There is a good chance you will NOT have to change it. define( 'DB_HOST', 'MyDatabaseHost' ) // Example MySQL Database host A port number or Unix socket file path may be needed as well. Replace ‘localhost’, with the name of your database host, e.g. Top ↑ Set Database Host # Set Database Host
How to use codex files password#
define( 'DB_PASSWORD', 'MyPassWord' ) // Example MySQL password Replace ‘password_here’, with the your password, e.g. Top ↑ Set Database Password # Set Database Password define( 'DB_USER', 'MyUserName' ) // Example MySQL username Replace ‘username_here’, with the name of your username e.g. Top ↑ Set Database User # Set Database User define( 'DB_NAME', 'MyDatabaseName' ) // Example MySQL database name Replace ‘database_name_here’, with the name of your database, e.g. Top ↑ Set Database Name # Set Database Name Note: Text inside /* */ are comments, for information purposes only. ** The name of the database for WordPress */ĭefine( 'DB_NAME', 'database_name_here' ) ĭefine( 'DB_PASSWORD', 'password_here' ) ** MySQL settings - You can get this info from your web host ** // The values here are examples to show you what to do. Note: This is an example of a default wp-config-sample.php. Top ↑ Default wp-config-sample.php # Default wp-config-sample.php
Locate the file wp-config-sample.php in the base directory of your WordPress directory and open in a text editor. Important: Never use a word processor like Microsoft Word for editing WordPress files! Configure Database Settings # Configure Database Settings If you manage your own web server or hosting account, you will have this information as a result of creating the database and user. If your hosting provider installed WordPress for you, get the information from them. A port number, Unix socket file path or pipe may be needed as well.
When you first download WordPress, the wp-config.php file isn’t included. This file is located in the root of your WordPress file directory and contains your website’s base configuration details, such as database connection information. One of the most important files in your WordPress installation is the wp-config.php file.
How to use codex files update#
Disable Plugin and Theme Update and Installation.