People are confusing the part they should edit with the part they shouldn't, so let's make the example values a little more self-evident.
git-svn-id: https://develop.svn.wordpress.org/trunk@5001 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
52e761f2df
commit
aeda207ddc
@ -157,13 +157,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'":
|
||||||
fwrite($handle, str_replace("wordpress", $dbname, $line));
|
fwrite($handle, str_replace("putyourdbnamehere", $dbname, $line));
|
||||||
break;
|
break;
|
||||||
case "define('DB_USER'":
|
case "define('DB_USER'":
|
||||||
fwrite($handle, str_replace("'username'", "'$uname'", $line));
|
fwrite($handle, str_replace("'usernamehere'", "'$uname'", $line));
|
||||||
break;
|
break;
|
||||||
case "define('DB_PASSW":
|
case "define('DB_PASSW":
|
||||||
fwrite($handle, str_replace("'password'", "'$passwrd'", $line));
|
fwrite($handle, str_replace("'yourpasswordhere'", "'$passwrd'", $line));
|
||||||
break;
|
break;
|
||||||
case "define('DB_HOST'":
|
case "define('DB_HOST'":
|
||||||
fwrite($handle, str_replace("localhost", $dbhost, $line));
|
fwrite($handle, str_replace("localhost", $dbhost, $line));
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
// ** MySQL settings ** //
|
// ** MySQL settings ** //
|
||||||
define('DB_NAME', 'wordpress'); // The name of the database
|
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
|
||||||
define('DB_USER', 'username'); // Your MySQL username
|
define('DB_USER', 'usernamehere'); // Your MySQL username
|
||||||
define('DB_PASSWORD', 'password'); // ...and password
|
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
|
||||||
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
|
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
|
||||||
define('DB_CHARSET', 'utf8');
|
define('DB_CHARSET', 'utf8');
|
||||||
define('DB_COLLATE', '');
|
define('DB_COLLATE', '');
|
||||||
|
Loading…
Reference in New Issue
Block a user