Do not use mysql connector. It has been deprecated and the php website clearly indicates this.

www.php.net/manual/en/intro.mysql.php

thank you
--
Alex Watila
Consultant 
•E-Learning •Virtualization •QMS •ISMS •Information Systems •ICT


-----Original Message-----
From: jeremy sinja <jeysinja@gmail.com>
Reply-to: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
Subject: Re: [Skunkworks] isues with moodle install
Date: Tue, 6 May 2014 00:48:03 +0300



Couple of ideas in my head.
1. You might be running mysql client but not the server.
2. If running on Lampp they normally have issues with mysqld.sock tunneling. If so try uninstall LAMPP and Install LAMP separately
Thats all I can think of as for now

On May 5, 2014 11:40 PM, "Alex Watila" <awatila@yahoo.co.uk> wrote:
dear all,
Kindly assist me with the following issue i am having installing moodle 2.6 on a centos 6.5 minimal install. I am using MariaDB as the database

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

tail -f /var/log/httpd/error_log indicates the following error

[Mon May 05 18:20:54 2014] [error] [client ***.***.***.***] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection timed out in /var/www/html/moodle/www/lib/dml/mysqli_native_moodle_database.php on line 375, referer: http://*.*.*.*/moodle/


regards,


--
Alex Watila
Consultant 
•E-Learning •Virtualization •QMS •ISMS •Information Systems •ICT








_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke

_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke