mysql on different server

mysql on different server

av r robbie -
Antal svar: 1

If I want to have moodle on one server and mysql on another where do on the config.php do I give the path to the database?

Thanks,

Robbie

Genomsnitt av betyg: -
Som svar till r robbie

Re: mysql on different server

av Robert Lefebvre -

Hey Robbie,

I just completed that type of install.

 

Change the lines in config.php

$CFG->dbhost    = 'yourwebsite.org';   // no leading "http:// or www.
                                        
$CFG->dbname    = 'your database name on the remote server';      // database name, eg moodle

 

Then, contact support at the site you're sending too and have them set up to allow access to the MySql from the sending server. Be aware that it does present some security issues.