dbtype = 'mydb'; // 'pgsql', 'mariadb', 'mysqli', 'mssql', 'sqlsrv' or 'oci' $CFG->dblibrary = 'native'; // 'native' only at the moment $CFG->dbhost = 'localhost'; // eg 'localhost' or 'db.isp.com' or IP $CFG->dbname = 'moodle'; // database name, eg moodle $CFG->dbuser = 'username'; // your database username $CFG->dbpass = 'password'; // your database password $CFG->prefix = 'mdl_'; // prefix to use for all table names $CFG->dboptions = array( 'dbpersist' => false, // should persistent database connections be // used? set to 'false' for the most stable // setting, 'true' can improve performance // sometimes 'dbsocket' => false, // should connection via UNIX socket be used? // if you set it to 'true' or custom path // here set dbhost to 'localhost', // (please note mysql is always using socket // if dbhost is 'localhost' - if you need // local port connection use '127.0.0.1') 'dbport' => '', // the TCP port number to use when connecting // to the server. keep empty string for the // default port ); $CFG->wwwroot = 'http://example.com/moodle'; $CFG->dataroot = '/home/example/moodledata'; $CFG->directorypermissions = 02777; $CFG->admin = 'admin'; require_once(dirname(__FILE__) . '/lib/setup.php'); // Do not edit ?>