mysql on different server

mysql on different server

by 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

Average of ratings: -
In reply to r robbie

Re: mysql on different server

by 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.