Jump to content

Recommended Posts

Posted (edited)

Hi all,

 

I installed my moodles in windows2008 server and published it worked properly for up to 1 week after that, when i am opening the site, error is coming.

 

The Error is

 

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

 

Warning: mysqli::close() [mysqli.close]: Couldn't fetch mysqli in C:\xampp\htdocs\moodle\lib\dml\mysqli_native_moodle_database.php on line 336

 

 

Can you please help me how to fix this out,and its very important to me to complete.

Edited by harish1225
To enter more information
Posted

Hi,

 

Thanks for the reply,

 

I have checked the mysql service it is running fine and the password for mysql has not changed. And is there any solution for this to work.

Posted

Have you tried restarting mysql?

 

Can you login to mysql from the command line? mysql -u -p enter - you will be prompted for password

 

select the database which moodle is

 

if that fails then there is something wrong with you connection settings.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...