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.
Related
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
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
Tried the recommendation on several threads. Here is the issue. The admin is working and updated the new DB fine. When you view the site from the frontend the product data, images, and links all point to the original site.
I Began by creating a new DB and importing a back up of the other Magento DB. The DB has a different name, the login and pw are different as well.
I modified the secure and unsecure URLs in the core_config_data table. I then installed a fresh copy of Magento (same version as my old site ver. 1.7.0.2).
I emptied the log tables which contained the old URL as well.
I looked at the local.xml file which had the correct settings.
Please keep in mind I have not added any source files from the old site. The olny thing that is from the old site is the DB.
Any other advice would be huge! Thanks in advance.
I never could get to the bottom of it. I simply uploaded fresh install of Magento and imported the data and it worked.
I have installed magento on ubuntu using magento-1.7.0.2.zip. I have also downloaded magento sample data magento-sample-data-1.6.1.0.tar.gz . But I can't integrate this sample data with my magento installation.
Please somebody help me.
Thanks
Here is a guide on how to install it
Main thing that you should know that you need to extract magento sample data (.sql file and media folder) then put media folder into your magento installation and import .sql file into your empty database before you will run Magento installation wizard, otherwise you won't be able to successfully install sample data
This is simplest ways i checked out all of above answer are complicated
1.install the sample database (mysql) file from sample data.
2.copy catlog folder from media in sample data and paste into your magento project.
3.if on windows no problem of folder permission other have to check for there specific way .
I've already copied the files and the database to my new system. But now I don't know, in which web.config I find the sql server settings.
Any suggestions, links, etc?
Database server settings are usually found in $webapproot\App_Data\Sites\Default\Settings.txt