I'm running Moodle 3.1 in production and want to install the same version in another directory as a sandbox (my server is hosted by a third party, Inmotionhosting).
I'm not terribly experienced with databases and have a question. I plan to use the config.php from production, which includes the settings listed below, in the sandbox. Do I need to use different values for 'dbname' and/or 'dbuser' in order to avoid conflict with the production database? Does using a different 'dbname' cause the server to create a new set of tables with that name that will be unique to the sandbox instance?
Thanks in advance for the assistance!
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'my_db_mood910';
$CFG->dbuser = '********';
$CFG->dbpass = '********';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);
(Edited by Helen Foster to remove username and password - original submission Sunday, 11 December 2016, 2:15 AM)