how can i connect to my own database under moodle

Re: how can i connect to my own database under moodle

by mariam ettih -
Number of replies: 0

Hi 

thx for the response

i edit auth.php under /var/www/moodle/auth/db/.

 function process_config($config) {
// set to defaults if undefined
if (!isset($config->host)) {
$config->host = '192.168.134.141';
}
if (!isset($config->type)) {
$config->type = 'mysql';
}
if (!isset($config->sybasequoting)) {
$config->sybasequoting = 0;
}
if (!isset($config->name)) {
$config->name = 'moodle';
}
if (!isset($config->user)) {
$config->user = 'projet';
}
if (!isset($config->pass)) {
$config->pass = 'projet';
}
if (!isset($config->table)) {
$config->table = 'student';
}
if (!isset($config->fielduser)) {
$config->fielduser = '';
}
if (!isset($config->fieldpass)) {
$config->fieldpass = '';
}
if (!isset($config->passtype)) {
$config->passtype = 'plaintext';
}
if (!isset($config->extencoding)) {
$config->extencoding = 'utf-8';
}
if (!isset($config->setupsql)) {
$config->setupsql = '';
}
if (!isset($config->debugauthdb)) {
$config->debugauthdb = 0;
}
if (!isset($config->removeuser)) {
$config->removeuser = 0;
}
if (!isset($config->changepasswordurl)) {
$config->changepasswordurl = '';
}
connexion to external database doesn't work?
must i change other things???
please i need help.