Error: Database connection failed by Nikos Papageorgiou - Tuesday, 19 March 2019, 4:13 PM Number of replies: 2 Hi,I m new in moodle and i m trying to install it.In Ubuntu server 18.04.1 i installed LAMP and now i try to install moodle.PHP - Apache2 - MYSQL looks fine.The error is Average of ratings: - Permalink Reply In reply to Nikos Papageorgiou Re: Error: Database connection failed by angel calero - Thursday, 21 March 2019, 4:09 PM Initially review file configuration the config.php Average of ratings: - Permalink Show parent Reply In reply to Nikos Papageorgiou Re: Error: Database connection failed by Visvanath Ratnaweera - Saturday, 23 March 2019, 10:05 AM Recheck all $CFG->db* parameters in your config.php. Some common mistakes: - $CFG->dbtype, ist it the correct one out of mysql, mysqli, mariadb, etc? - Can you log in to mysql console with $CFG->dbname, $CFG->dbuser, $CFG->dbpass and look at the content of the Moodle database? - Is $CFG->prefix there in every table? Average of ratings: - Permalink Show parent Reply
In reply to Nikos Papageorgiou Re: Error: Database connection failed by angel calero - Thursday, 21 March 2019, 4:09 PM Initially review file configuration the config.php Average of ratings: - Permalink Show parent Reply
In reply to Nikos Papageorgiou Re: Error: Database connection failed by Visvanath Ratnaweera - Saturday, 23 March 2019, 10:05 AM Recheck all $CFG->db* parameters in your config.php. Some common mistakes: - $CFG->dbtype, ist it the correct one out of mysql, mysqli, mariadb, etc? - Can you log in to mysql console with $CFG->dbname, $CFG->dbuser, $CFG->dbpass and look at the content of the Moodle database? - Is $CFG->prefix there in every table? Average of ratings: - Permalink Show parent Reply