Couldn't fetch mysqli in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php

Couldn't fetch mysqli in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php

by Peter Whitehead -
Number of replies: 3

I'm new to Moodle and Nix so please excuse dumb questions.

I have installed Ubuntu 11.10 and Moodle 2.14 using the git instructions at http://docs.moodle.org/22/en/Installation_on_Ubuntu_using_Git.

When I press next after entering my database settings I get the error at the top of rthe screen:

Warning: mysqli::close(): Couldn't fetch mysqli in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php on line 336

with these errors at the bottom.

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::mysqli(): (28000/1045): Access denied for user 'moodleuser'@'localhost' (using password: YES) in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php on line 75

Now there seemed to be these sort of errors a year ago.

Is there a simple solution to this or does anyone know an Ubuntu/Moodle combination that is safe and stable?

Cheers

Peter

Average of ratings: -
In reply to Peter Whitehead

Re: Couldn't fetch mysqli in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php

by Peter Whitehead -

I have now checked a few extra things.  In particular, I see that there is no config.php file.  The -dist template is there.

Does this mean that the installation didn't work at an earlier stage?

In reply to Peter Whitehead

Re: Couldn't fetch mysqli in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
@all

Apparantly reposted here: http://moodle.org/mod/forum/discuss.php?d=196285

@Peter

You should not repost http://docs.moodle.org/en/Moodle.org_forums_Code_of_Conduct, if no answer for a long time you can bump, but just 9 h are way too short.
sad
In reply to Visvanath Ratnaweera

Re: Couldn't fetch mysqli in /var/www/moodle/lib/dml/mysqli_native_moodle_database.php

by Peter Whitehead -

Hi Visvanath

Really sorry - not my intention to repost - just retitle.  Forgot to close this thread first.

Peter