Sure! and what help do you need?
Thread Starter
Kelly
(@kelly)
Is this right?
<?php
/** WordPress’s config file **/
/** http://wordpress.org/ **/
// ** MySQL settings ** //
define(‘wp’, ‘wordpress’); // The name of the database
define(‘Kelly’, ‘username’); // Your MySQL username
define(‘********’, ‘password’); // …and password
define(‘www.somewhere-else.net/kelly’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple blogs in a single database.
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
/* Stop editing */
$server = DB_HOST;
$loginsql = DB_USER;
$passsql = DB_PASSWORD;
$base = DB_NAME;
define(‘ABSPATH’, dirname(__FILE__).’/’);
// Get everything else
require_once(ABSPATH.’wp-settings.php’);
?>
It should be
define('DB_NAME', 'wp'); // The name of the database
define('DB_USER', 'Kelly'); // Your MySQL username
define('DB_PASSWORD', '******'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
Leave the thing in Capitals unmodified. the second item within the ‘__’ in each “define” is what you have to specify.
Cheeri-O! 🙂
Kelly,
This is what one of my wp-config files looks like:
<pre>
// ** MySQL settings ** //
define(‘DB_NAME’, ‘dawsoncreek_wordpress’); // The name of the database
define(‘DB_USER’, ‘dawsoncreek_blogger’); // Your MySQL username
define(‘DB_PASSWORD’, ‘xxxxxxxx’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
</pre>
“dawsoncreek_” is what my host prepends onto all my databases and database usernames. You need to find out if your host does something similar. Also, your user needs to be made a member of your database as well.
HTH.
Thread Starter
Kelly
(@kelly)
I did what you told me, but when I go to the install.php page there are errors:
“Parse error: parse error in /home/somewhe/public_html/kelly/wp/wp-config.php on line 20
WordPress
Fatal error: Call to a member function on a non-object in /home/somewhe/public_html/kelly/wp/wp-admin/install.php on line 47″
Line 20 looks like your last line. Delete everything, even blank spaces, and lines after the last ?> in wp-config.php and you should be good, I guess.
Thread Starter
Kelly
(@kelly)
I checked again and then I edited it like you guys did it, but it went back to the first original error.. 🙁 It’s driving me crazy!!
<?php
/** WordPress’s config file **/
/** http://wordpress.org/ **/
// ** MySQL settings ** //
define(‘DB_NAME’, ‘wp’); // The name of the database
define(‘DB_USER’, ‘Kelly’); // Your MySQL username
define(‘DB_PASSWORD’, ‘*******’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple blogs in a single database.
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
/* Stop editing */
$server = DB_HOST;
$loginsql = DB_USER;
$passsql = DB_PASSWORD;
$base = DB_NAME;
define(‘ABSPATH’, dirname(__FILE__).’/’);
// Get everything else
require_once(ABSPATH.’wp-settings.php’);
?>
Anonymous
MySQL 4.1 uses a different authentication Hash, you will have to ‘re-save’ you DB_PASSWORD in mysql for it to work…
Check without using a password and it will work.
To ‘re-save’ you password in ‘old format’:
mysql> SET PASSWORD FOR ‘some_user’@’some_host’ = OLD_PASSWORD(‘your DB_PASSWORD’);
Or, if you have phpmyadmin access, just do this: http://www.tamba2.org.uk/wordpress/phpmyadmin/
Anonymous
How do you find your MySQL username?
Your hosting provider gives it to you.