How to change the database name after install successfully. Where the path to specify the database name?
08-27-2018, 03:43 AM
(This post was last modified: 08-27-2018, 03:51 AM by weetax.)
<?php
require_once 'classes/class.autoloader.php';
session_start();
$abs_us_root=$_SERVER['DOCUMENT_ROOT'];
$self_path=explode("/", $_SERVER['PHP_SELF']);
$self_path_length=count($self_path);
$file_found=FALSE;
for($i = 1; $i < $self_path_length; $i++){
array_splice($self_path, $self_path_length-$i, $i);
$us_url_root=implode("/",$self_path)."/";
if (file_exists($abs_us_root.$us_url_root.'z_us_root.php')){
$file_found=TRUE;
break;
}else{
$file_found=FALSE;
}
}
require_once $abs_us_root.$us_url_root.'users/helpers/helpers.php';
// Set config
$GLOBALS['config'] = array(
'mysql' => array(
Add some config to
$GLOBALS['config'] = array(
'mysql' => array(
'host' => '192.168.xxx.xxx',
'username' => 'xxxxx',
'password' => 'xxxxx',
'db' => 'S2SDB_DEV1',
),
Do you still require help? That is the file you make the modification in.