Standardize db config-sample values. fixes #11523

git-svn-id: http://svn.automattic.com/wordpress/trunk@13837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-03-27 05:42:08 +00:00
parent 209d4a7a2e
commit b5fa6854b5
2 changed files with 6 additions and 6 deletions

View File

@ -209,13 +209,13 @@ switch($step) {
foreach ($configFile as $line_num => $line) { foreach ($configFile as $line_num => $line) {
switch (substr($line,0,16)) { switch (substr($line,0,16)) {
case "define('DB_NAME'": case "define('DB_NAME'":
$configFile[$line_num] = str_replace("putyourdbnamehere", $dbname, $line); $configFile[$line_num] = str_replace("database_name_here", $dbname, $line);
break; break;
case "define('DB_USER'": case "define('DB_USER'":
$configFile[$line_num] = str_replace("'usernamehere'", "'$uname'", $line); $configFile[$line_num] = str_replace("'username_here'", "'$uname'", $line);
break; break;
case "define('DB_PASSW": case "define('DB_PASSW":
$configFile[$line_num] = str_replace("'yourpasswordhere'", "'$passwrd'", $line); $configFile[$line_num] = str_replace("'password_here'", "'$passwrd'", $line);
break; break;
case "define('DB_HOST'": case "define('DB_HOST'":
$configFile[$line_num] = str_replace("localhost", $dbhost, $line); $configFile[$line_num] = str_replace("localhost", $dbhost, $line);

View File

@ -16,13 +16,13 @@
// ** MySQL settings - You can get this info from your web host ** // // ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */ /** The name of the database for WordPress */
define('DB_NAME', 'putyourdbnamehere'); define('DB_NAME', 'database_name_here');
/** MySQL database username */ /** MySQL database username */
define('DB_USER', 'usernamehere'); define('DB_USER', 'username_here');
/** MySQL database password */ /** MySQL database password */
define('DB_PASSWORD', 'yourpasswordhere'); define('DB_PASSWORD', 'password_here');
/** MySQL hostname */ /** MySQL hostname */
define('DB_HOST', 'localhost'); define('DB_HOST', 'localhost');