Решил перенести с denwer на хостинг, сайт joomla. Но на хостинге уже стоял сайт joomla я его заменил на тот который стоял на denwer. И еще на хостинге был установлен moodle. При настройке joomla я случайно указал путь к базе данных moodle. И после этого у меня вылетает ошибка.
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
В данный момент я откатил все до начального уровня на хостинге, удалил базу joomla. Но ошибка по прежнему вылетает. Подскажите пожалуйста в чем может быть дело? Я уже отчаялся Сайт стоит на sweb.ru. Какая версия moodle не знаю.
Вылетает ошибка 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
Количество ответов: 11Re: Вылетает ошибка 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
Подскажите пожалуйста в чем может быть дело?
Moodle не может соединиться со своей базой данных. Или сама база испорчена, или отсутствует (неверные настройки) в config.php
База данных moodle на месте? Все таблицы рабочие?
config.php в корне сайта moodle присутствует? Настройки в файле указаны верные?
Re: Вылетает ошибка 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
В config.php все настройки верные и база сама тоже вся на месте
Re: Вылетает ошибка 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
Чудес не бывает, если всё на месте и настройки правильные, то почему сайт не работает?
Таблицы в БД проверили?
Re: Вылетает ошибка 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
Да таблицы на месте их 328. Сейчас сделал бекап базы, но вылетает такая же ошибка
Re: Вылетает ошибка 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
А можно как то восстановить базу если с ней что то не так?
Re: Вылетает ошибка 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
На хостинге должны автоматически создаваться резервные копии и БД, и файлов. Смотрите в панели управления.
Re: Вылетает ошибка 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
Сервер Centos 7 Moodle 3.7.1.
Установлен в сервере VPS.
Все 427 таблиц на месте
Re: Вылетает ошибка 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
пишет такая ошибка
[Mon Dec 23 10:47:13.948133 2019] [php7:notice] [pid 14344] [client 82.215.97.99:14640] PHP Notice: Trying to get property of non-object in /var/www/html/lib/moodlelib.php on line 4421, referer: http://****
[Mon Dec 23 10:47:13.951655 2019] [php7:notice] [pid 14344] [client 82.215.97.99:14640] [client 82.215.97.99] http://**** Invalid Login Token: \xd1\x84\xd1\x80\xd0\xb0\xd0\xbd\xd1\x86\xd1\x83\xd0\xb7 \xd1\x82\xd0\xb8\xd0\xbb\xd0\xb8 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 OPR/62.0.3331.72, referer: http://****/login/index.php
Как это исправить
Re: Вылетает ошибка 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
Все cработала
$CFG->dbhost = 'localhost'; --> $CFG->dbhost = 'ip';
Всем спасибо!
Re: Вылетает ошибка 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
Куда нужно ввести команду: $CFG->dbhost = 'localhost'; --> $CFG->dbhost = 'ip'; ?