Error writing to database - moodle

I'm using Moodle 3.2.
Created website in XAMPP server with database type is mariaDB.
Trying to move website in to WAMP server.
Created database in phpmyadmin and imported database.
Placed website folder in WAMP/www/site_folder.
changed configuration in config.php file.
While running the site, getting the following error.
Error writing to database

Try to run a plain moodle install before, to see if your DB configuration is working fine.
I think for MariaDB you need to set some (not standard) settings for moodle 3.2

You seems to have switched from mysql to mariaDB, Please make sure that you have set the dbtype driver right in config.php file.
$CFG->dbtype = 'mariadb';
See for reference https://docs.moodle.org/32/en/MariaDB

Related

moodle - database connection failed when running sync.php script

I am setting up a moodle plugin for enrolment from an external database based on instruction in https://docs.moodle.org/39/en/External_database_enrolment. I was successful in setting up a similar plugin for authentication from an external database. But I am having a problem with a plugin for enrolment from the external database. When I test the plugin settings it is successful as shown below https://i.stack.imgur.com/fdrqG.png
But When I run php sync.php I got
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
My moodle version is 3.9.1 and I am using Mac OS.
Thank you in advance.
First, turn on debug, to get errors.
Finally found that the problem was, the plugin do not work with PHP7.4 (while Moodle do).
Fixed by downgrading PHP to 7.2

Neo4j server won't create data/log dir and files

Working with Neo4j server as a WIN service with a plugin extension.
The server is not creating the log files (which should be found under data\log)
and I can't see why.
I went through all conf files and they look perfectly fine.
In my app I'm writing the logs via java.util.logging.logger as
instructed in the documentation and suggested here:
How can you log from a Neo4j Server Plugin?
Did anyone had similar experience or can direct me to the solution?
P.S
The plugin extension works fine.
Thank you.

error reading from the database moodle 2.8.5

I copied the moodle site from the server and set it up in the local in xampp.
I also imported the same database which was on the server.
I also did all the nessesory changes in the config.php file, but it's giving an error while reading from the database.
Please help me out with this.
I am new to the moodle.

Run a symfony project on hostgator

I have been trying to run a symfony project I created recently using symfony 1.4.
But pointing to the url (xyz.in) simply shows up the directory structure of the application
In the CPanel I have edited the document root to be upto app/web/ directory
After doing this all I can see is a blank page and nothing else.
What might be wrong? What are the necessary steps for deploying a symfony project to a shared hosting?
You can check the rights on cache and log directories, Apache needs write rights. Ther are many problems with symfony and shared hosting, but it's not an impossible task.

Is it possible to deploy an already built Drupal site?

I'm a Drupal newbie. Is it possible to set up everything and deploy Drupal on the server? I mean things like putting in the content, setting up the modules, etc..., then you put it all up to the production server?
Of course.
copy all the files
edit the database credentials (sites/default/settings.php)
export the database content via mysqldump or phpMyAdmin (supposing you use MySQL)
import the database content at the target server
I've done it several times.