You are not logged in.
Hi to everyone:
I did upgrade to MySQL 5.1.41-2 and Moodle doesn't work now
When I'm trying access to http://http://localhost/moodle/, the system shows me this 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
I'm testing the database connection (by console) and everything works fine.
Someone else with the same problem ... anyone knows how to fix it?
Last edited by Ravenman (2009-11-19 16:54:34)
Offline
Somewhere in the moodle config or code there may be a line that has "/tmp/mysql.sock"
You would have to change that to "/var/run/mysqld/mysqld.sock".
Or possibly in php.ini:
mysql.default_socket = /var/run/mysqld/mysqld.sock
Cheers.
Offline
Somewhere in the moodle config or code there may be a line that has "/tmp/mysql.sock"
You would have to change that to "/var/run/mysqld/mysqld.sock".Or possibly in php.ini:
mysql.default_socket = /var/run/mysqld/mysqld.sockCheers.
Yes, you made it!. I've changed the mysql.default_socket value in my /etc/php/php.ini and everything is fine now.
Thanks for your help, Louipc. Until the next!
Offline