mysql on different server

mysql on different server

r robbie -
Number of replies: 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

Ngā whakawākanga toharite: -
In reply to r robbie

Re: mysql on different server

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.

 

Ngā whakawākanga toharite: -