PDA

View Full Version : Wordpress Help?



Save
05-10-2007, 05:18 PM
Tbh, I dont have a clue and would like some one to help me do the folowing +Rep of course

// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');


Many thanks
Michael

Assassinator
05-10-2007, 06:00 PM
// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');


Ok, DBNAME is what your database is called
DBUSER is the name of the acount you use to login
DBPASSWORD is the password you use to login
DBHOST, just put "localhost"
And the last two i have no idea,

But to make it easy

1)Make a file called db_connect.php
2) On everypage use the following code


<?php include "db_connect.php" ?>
"

3)On db_connect.php use the following code..


<?php
$mysql_server = "localhost";
$mysql_user = "username";
$mysql_password = "password";
$mysql_database = "databasename";
$timeoutseconds = 300000;
$db = mysql_select_db("$mysql_database") or die ("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=../index.php\">");

?>



Hope i helped..

Lycan
05-10-2007, 06:04 PM
if your still stuck, there are plenty of sites out there that will create a wordpress blog for you, or Multiuser blogs, www.fango.co.uk is one i use/own XD

ScottDiamond.
05-10-2007, 06:10 PM
// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
Ok, DBNAME is what your database is called
DBUSER is the name of the acount you use to login
DBPASSWORD is the password you use to login
DBHOST, just put "localhost"
And the last two i have no idea,

But to make it easy

1)Make a file called db_connect.php
2) On everypage use the following code


<?php include "db_connect.php" ?>
"3)On db_connect.php use the following code..


<?php
$mysql_server = "localhost";
$mysql_user = "username";
$mysql_password = "password";
$mysql_database = "databasename";
$timeoutseconds = 300000;
$db = mysql_select_db("$mysql_database") or die ("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=../index.php\">");

?>

Hope i helped..

You made something easy to understand complicated.

Save, change all the values for what it asks you for. It's not rocket science. You will have to create a database, by the way.

Save
05-10-2007, 06:24 PM
Thanks Scott

ScottDiamond.
05-10-2007, 07:40 PM
I'll highlight in bold what you have to change.

// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');


Change this to the name of your database.
Change this to the user of that database.
Change this to the password for that user to the database.

Want to hide these adverts? Register an account for free!