I have installed Moodle 2.8
on CentOS 7
.
I face a problem.
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
and my Config.php
is as follow:
CFG->dbtype = 'mariadb'
CFG->dblibrary = 'native'
CFG->dbhost = '192.0.0.0'
CFG->dbname = 'moodle'
CFG->dbuser = 'moodle'
CFG->dbpass = 'password'
and my data path is: ver/moodledata
and Document root is : var/www/html/moodle
How can I solve this problem. Please help me.I am new in moodle.
Okay so looks like an issue with the database rather than moodle.
This might have the answer - ERROR 1130 (HY000): Host '' is not allowed to connect to this MySQL server
Try that then try the command line again
mysql -u moodle -p -h 192.0.0.0 moodle
If the command line works then Moodle should work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.