MySQL connection error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned |
Bug Description
After the follwing commit, Mahara shows MySQL DB connection error as below.
[git.mahara.org commit]
http://
[error message]
-------
Mahara: Site unavailable
Mahara could not connect to the application database.
* If you are using Mahara, please wait a minute and try again
* If you are the administrator, please check your database settings and make sure your database is available
The error received was:
Missing file: /home/mahara/
This bug was imported from eduforge.org, see:
https:/
To avoid this MySQL connection error, we need to fix
'htdocs/init.php' as below.
File: htdocs/init.php 2dfe164853f8ce0 4f0f748cbe
Ref.: fc8d64fd920e153
[before] 'mahara. php'); 'activity. php'); 'user.php' );
// core libraries
require(
ensure_sanity();
require('dml.php');
require('web.php');
require(
require(
[After] 'mahara. php'); 'activity. php'); 'user.php' );
// core libraries
require(
ensure_sanity();
require('dml.php');
require('ddl.php');
require('web.php');
require(
require(