Hi I got same problem ,yesterday i successfully install moodle software, i can log on to my user account to but when i came back today and want to start it again than it shows me this error
Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Even I check my XAMPP control panel it shows me that Appache and Mysql are not running but i am also unable to run both of them.My config.php configuration is :-
ca<?php /// Moodle Configuration File
unset($CFG);
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = 'P@ssword123';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'http://localhost';
$CFG->dirroot = 'C:\Moodle\server\moodle';
$CFG->dataroot = 'C:\Moodle\server/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>n
Help me , if you got the solution plz