Introduction to wp-config.php
The WordPress wp-config.php file in the root directory is the most important file for WordPress configuration. In this file we configure the database with default setting so it's enough for a basic WordPress installation. There are lots of other cool things like improving security, performance and functionality. You can manually rename wp-config.-sample.php to wp-config.php or use the installation wizard to create one.
NOTE: The contents of the wp-config-sample.php file are in a very specific order. The order matters. If you already have a config file, rearranging the contents of the file may create errors on your blog. Since Version 2.6, config can be moved to the directory directly above the WordPress application directory.
This should be after the PHP comment near the top of the file:
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'database_name_here'); /** MySQL database username */ define('DB_USER', 'username_here'); /** MySQL database password */ define('DB_PASSWORD', 'password_here'); /** MySQL hostname */ define('DB_HOST', 'localhost'); /** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8'); /** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', '');
Tags: dontwaittoeducate, Contents, wordpress, File, Server, Setup, database, db, wp-config, wpconfigphp
This work is licensed under a
Creative Commons Attribution-