TurnKey Linux Virtual Appliance Library

Moodle hosted on

I just signed in at www.vr.org , and created a Moodle appliance.

I was able to create it, Open the Browser (Firefox), and update my (admin), profile.and save it.


On trying to create a new course, I get the message:

"Error reading from database". On trying other options, I was able toadd a course, and edit/create the News Activity.


On trying to acces it, I get this error message:

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




What dio I have to do? I am not atechie, and a new bee, pl. guide me what to do?




Brian's picture

Moodle Database issue

First thing to try is restart the mysql service.

as root

service mysqld restart

Brian Lockwood
OSS enthusiast

Jeremy Davis's picture

I have not used that provider

But have used the Moodle appliance (as an OVZ on Proxmox as well as installing via ISO) and have not experienced this issue.

Not knowing how the provider do their images I can't be sure, but perhaps you need to run the firstboot scripts? How did you set your root password etc?

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)