Error Database Connection Failed Moodle
Contents |
Installing and upgrading help /► Error: Database connection failed. Moodle in English Installing it is possible that the database is overloaded or otherwise not running properly. and upgrading helpError: Database connection failed.mass edit image locationAll moodle database overload error graphics gone, after install. Trully vexing problem.Display modeDisplay replies flat, with oldest firstDisplay
Moodle Database Connection
replies flat, with newest firstDisplay replies in threaded formDisplay replies in nested formError: Database connection failed.Winter QuanMonday, 28 February 2005, 7:34 PMWhile
Moodle Internal Server Error 500
I install my Moodle, such error occur: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.phpHowever, I'm sure my system has a perfect coonection moodle error logs to database, for I could use "phpMyAdmin" to manage my database. and in config.php of Moodle, my set is as follows:$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com$CFG->dbname = 'moodle'; // database name, eg moodle$CFG->dbuser = 'root'; // your database username$CFG->dbpass = '123456'; // your database password$CFG->prefix = 'mdl_'; // Prefix to use for all table names$CFG->dbpersist = false; // Should database connections be reused? // "false" is the most stable setting // "true" can improve performance sometimesI'm using WinXP. What's wrong with me?Thanks a lot.Average of ratings: - Permalink | ReplyRe: Error: Database connection failed.Winter QuanTuesday, 1 March 2005, 12:01 AMI've added script "phpinfo() " in config.php and got the following information:mysqlMySQL SupportenabledActive Persistent Links 0 Active Links 0 Client API versio
here for a quick overview of the site Help Center Detailed answers to any questions you
Installing Moodle
might have Meta Discuss the workings and policies of this moodle download site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers error establishing a database connection or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community https://moodle.org/mod/forum/discuss.php?d=19451 of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Moodle database connection error up vote 2 down vote favorite I am trying to setup moodle and running into a connection problem. See the config below: http://stackoverflow.com/questions/30849267/moodle-database-connection-error = new stdClass(); $CFG->dbtype = 'mysqli'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'gs_vle'; $CFG->dbuser = 'root'; $CFG->dbpass = 'root'; $CFG->prefix = 'mdl_'; $CFG->dboptions = array ( 'dbpersist' => 0, 'dbport' => '', 'dbsocket' => '', ); $CFG->wwwroot = 'http://localhost/~ryanme/work/vle/'; $CFG->dataroot = '/Users/ryanme/sites/work/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 0777; require_once(dirname(__FILE__) . '/lib/setup.php'); I am getting a database connection error. See the error below: 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 Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in /Users/ryanme/Sites/work/vle/lib/dml/mysqli_native_moodle_database.php on line 79 Things I have done Logged in with the root user via terminal and checked I can see the database with show databases;. This works fine. Checked the settings are correct over and over. Compared the config file to teams setup and it's pretty much the same. Ensured the mysqli
Pages: 1 #1 2009-11-19 16:24:07 Ravenman Member Registered: 2009-07-03 Posts: 224 Moodle doesn't work after upgrading to MySQL 5.1.41 [Solved] https://bbs.archlinux.org/viewtopic.php?id=85105 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 database connection details have been correctly specified in config.phpI'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) Wesnoth Needs Your Help! Offline #2 2009-11-19 16:35:38 louipc Member Registered: 2006-10-09 Posts: 85 error database connection 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.sockCheers. Offline #3 2009-11-19 16:54:09 Ravenman Member Registered: 2009-07-03 Posts: 224 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.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! Wesnoth Needs Your Help! Offline Pages: 1 Index »Networking, Server, and Protection »Moodle doesn't work after upgrading to MySQL 5.1.41 [Solved] Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Networking, Server, and Pro