This old 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
I have set up two servers, one web server and one mysql db server and i am getting the above error. I have set up 500 moodle servers before but i am pulling my hair out on this one. Any ideas? both servers are on the same network, both apache web servers work on both machines from the browser, have checked and checked again the connection details in the moddle config file.