Database problemen

Status
Niet open voor verdere reacties.

uaejeroen

Terugkerende gebruiker
Lid geworden
7 dec 2009
Berichten
1.665
http://www.studieoverzicht.com/

Wat moet ik nog veranderen?

Ik heb een database aangemaakt namelijk

HTML:
<?php
/**
 * Elgg settings
 *
 * Elgg manages most of its configuration from the admin panel. However, we need you to
 * include your database settings below.
 *
 * @todo Turn this into something we handle more automatically.
 */

global $CONFIG;
if (!isset($CONFIG)) {
	$CONFIG = new stdClass;
}

/*
 * Standard configuration
 *
 * You will use the same database connection for reads and writes.
 * This is the easiest configuration, and will suit 99.99% of setups. However, if you're
 * running a really popular site, you'll probably want to spread out your database connections
 * and implement database replication.  That's beyond the scope of this configuration file
 * to explain, but if you know you need it, skip past this section.
 */

// Database username
$CONFIG->dbuser = '{{deb38778_jeroen}}';

// Database password
$CONFIG->dbpass = '{{mijn wachtwoord}}';

// Database name
$CONFIG->dbname = '{{deb38778_elgg}}';

// Database server
// (For most configurations, you can leave this as 'localhost')
$CONFIG->dbhost = 'localhost';

// Database table prefix
// If you're sharing a database with other applications, you will want to use this
// to differentiate Elgg's tables.
$CONFIG->dbprefix = 'elgg_';

/*
 * Multiple database connections
 *
 * Here you can set up multiple connections for reads and writes. To do this, uncomment out
 * the lines below.
 */

/*

// Yes! We want to split reads and writes
$CONFIG->db->split = true;

// READS
// Database username
$CONFIG->db['read']->dbuser = "deb38778_jeroen";

// Database password
$CONFIG->db['read']->dbpass = "mijn wachtwoord";

// Database name
$CONFIG->db['read']->dbname = "deb38778_elgg";

// Database server
// (For most configurations, you can leave this as 'localhost')
$CONFIG->db['read']->dbhost = "localhost";

// WRITES
// Database username
$CONFIG->db['write']->dbuser = "";

// Database password
$CONFIG->db['write']->dbpass = "";

// Database name
$CONFIG->db['write']->dbname = "";

// Database server
// (For most configurations, you can leave this as 'localhost')
$CONFIG->db['write']->dbhost = "localhost";

 */

/*
 * For extra connections for both reads and writes, you can turn both
 * $CONFIG->db['read'] and $CONFIG->db['write'] into an array, eg:
 *
 * 	$CONFIG->db['read'][0]->dbhost = "localhost";
 *
 * Note that the array keys must be numeric and consecutive, i.e., they start
 * at 0, the next one must be at 1, etc.
 */


/**
 * Memcache setup (optional)
 * This is where you may optionally set up memcache.
 *
 * Requirements:
 * 	1) One or more memcache servers (http://www.danga.com/memcached/)
 *  2) PHP memcache wrapper (http://uk.php.net/manual/en/memcache.setup.php)
 *
 * Note: Multiple server support is only available on server 1.2.1 or higher with PECL library > 2.0.0
 */
//$CONFIG->memcache = true;
//
//$CONFIG->memcache_servers = array (
//	array('server1', 11211),
//	array('server2', 11211)
//);

/**
 * Some work-around flags.
 */

// Try uncommenting the below if your notification emails are not being sent
// $CONFIG->broken_mta = true;

/**
 * Url - I am not sure if this will be here ?
 **/

// URL
$CONFIG->url = "";
 
volgens de webpagina moet je de inhoud van die code box plaatsen in .htaccess
 
Beste

Het database probleem is opgelost

Nu zit ik met dit bestand
htaccess heb ik gemaakt alles copy past upgeload naar de root en werkt nog niet

ik ben aan googlen heb chmodd777 gedaan maar het is nog steeds niet verholpen kunt u me helpen
 
Kijk eens naar de extensie van je .htaccess bestand, vaak is dat de boosdoender ;)
 
Dit is dat bestand wat fout is

maar ik heb alles goed dbname, user en wachtwoord

PHP:
<?php
/**
 * Elgg settings
 *
 * Elgg manages most of its configuration from the admin panel. However, we need you to
 * include your database settings below.
 *
 * @todo Turn this into something we handle more automatically.
 */

global $CONFIG;
if (!isset($CONFIG)) {
	$CONFIG = new stdClass;
}

/*
 * Standard configuration
 *
 * You will use the same database connection for reads and writes.
 * This is the easiest configuration, and will suit 99.99% of setups. However, if you're
 * running a really popular site, you'll probably want to spread out your database connections
 * and implement database replication.  That's beyond the scope of this configuration file
 * to explain, but if you know you need it, skip past this section.
 */

// Database username
$CONFIG->dbuser = '{{deb38778_jeroen}}';

// Database password
$CONFIG->dbpass = '{{hier mijn wachtwoord}}';

// Database name
$CONFIG->dbname = '{{deb38778_elgg}}';

// Database server
// (For most configurations, you can leave this as 'localhost')
$CONFIG->dbhost = 'localhost';

// Database table prefix
// If you're sharing a database with other applications, you will want to use this
// to differentiate Elgg's tables.
$CONFIG->dbprefix = 'elgg_';

/*
 * Multiple database connections
 *
 * Here you can set up multiple connections for reads and writes. To do this, uncomment out
 * the lines below.
 */

/*

// Yes! We want to split reads and writes
$CONFIG->db->split = true;

// READS
// Database username
$CONFIG->db['read']->dbuser = "deb38778_jeroen";

// Database password
$CONFIG->db['read']->dbpass = "hier mijn wachtwoord";

// Database name
$CONFIG->db['read']->dbname = "deb38778_elgg";

// Database server
// (For most configurations, you can leave this as 'localhost')
$CONFIG->db['read']->dbhost = "localhost";

// WRITES
// Database username
$CONFIG->db['write']->dbuser = "";

// Database password
$CONFIG->db['write']->dbpass = "";

// Database name
$CONFIG->db['write']->dbname = "";

// Database server
// (For most configurations, you can leave this as 'localhost')
$CONFIG->db['write']->dbhost = "localhost";

 */

/*
 * For extra connections for both reads and writes, you can turn both
 * $CONFIG->db['read'] and $CONFIG->db['write'] into an array, eg:
 *
 * 	$CONFIG->db['read'][0]->dbhost = "localhost";
 *
 * Note that the array keys must be numeric and consecutive, i.e., they start
 * at 0, the next one must be at 1, etc.
 */


/**
 * Memcache setup (optional)
 * This is where you may optionally set up memcache.
 *
 * Requirements:
 * 	1) One or more memcache servers (http://www.danga.com/memcached/)
 *  2) PHP memcache wrapper (http://uk.php.net/manual/en/memcache.setup.php)
 *
 * Note: Multiple server support is only available on server 1.2.1 or higher with PECL library > 2.0.0
 */
//$CONFIG->memcache = true;
//
//$CONFIG->memcache_servers = array (
//	array('server1', 11211),
//	array('server2', 11211)
//);

/**
 * Some work-around flags.
 */

// Try uncommenting the below if your notification emails are not being sent
// $CONFIG->broken_mta = true;

/**
 * Url - I am not sure if this will be here ?
 **/

// URL
$CONFIG->url = "";

Dit is ook opgelost

Ik moest de haakjes verwijderen
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan