You are not logged in.

#1 2009-11-19 16:24:07

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Moodle doesn't work after upgrading to MySQL 5.1.41 [Solved]

Hi to everyone:

I did upgrade to MySQL 5.1.41-2 and Moodle doesn't work now yikes

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. roll

Someone else with the same problem ... anyone knows how to fix it? neutral

Last edited by Ravenman (2009-11-19 16:54:34)

Offline

#2 2009-11-19 16:35:38

louipc
Member
Registered: 2006-10-09
Posts: 85

Re: Moodle doesn't work after upgrading to MySQL 5.1.41 [Solved]

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

#3 2009-11-19 16:54:09

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: Moodle doesn't work after upgrading to MySQL 5.1.41 [Solved]

louipc wrote:

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.

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! wink

Offline

Board footer

Powered by FluxBB