Moodle 4.2 DataBase Connection Error

Re: 回复: Re: Moodle 4.2 DataBase Connection Error

by Visvanath Ratnaweera -
Number of replies: 0
Picture of Particularly helpful Moodlers Picture of Translators
Hi Leon

No, I didn't mean to break the tradition by changing $CFG->dbhost from 'localhost' to '127.0.0.1'. Depending on the OS the hostname localhost is not known to the resolver. Yes, as in your case, most of the Linux distribution do this with the line "127.0.0.1 localhost" in /etc/hosts.