Status
Not open for further replies.

saurabh.sauron

Ambassador of Buzz
i need some help in editing the wp-config file. i have created a database at frihost and want to use wordpress. i edited the file but got an error while trying to install wp.

<?php
// ** MySQL settings ** //
define('typed the db name here', 'wordpress'); // The name of the database
define('typed username here', 'username'); // Your MySQL username
define('typed pword here', 'password'); // ...and password
define('typed localhost here', 'localhost'); // 99% chance you won't need to change this value

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
then i typed the url :- *url.frihost.net/wp-config
i got an error 'Error establishing database connection'
i want to know what mistake i have made.
thnx
 

kalpik

In Pursuit of "Happyness"
1. Make sure username and password is correct.
2. You have to goto *yoursite.com/wp-admin/install.php
 

Sourabh

Laptoping
have you connected the user to the database and given it all priveleges?

check each and everything again while editing the wp-config.php
 

kjuvale

Pharmaguru
please check your database again . I also earlier had a wp in frih. and i was facing same problem. check all database name, database user and password again in control panel of frih.
 
OP
saurabh.sauron

saurabh.sauron

Ambassador of Buzz
i got my solution

this should have been the code.
<?php
// ** MySQL settings ** //
define('DB_NAME', 'actual database name'); // The name of the database
define('DB_USER', 'actual username'); // Your MySQL username
define('DB_PASSWORD', 'ur password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
i was typing the details in the worng place...
 
Status
Not open for further replies.
Top Bottom