Cobub Razor
Cobub Toaster
其它链接
该文档适用于Cobub Razor 0.7版本。
安装前准备
在安装之前,确保系统具备以下条件:
将修改后sql文件导入到创建的数据库中,执行顺序是先数据库sql文件,数据仓库sql文件,存储过程sql文件(即1. databaseinfo.sql 2. dataware.sql 3. datawarestore.sql)。
配置文件位于Cobub_Razor/application/config下。 主要修改autoload.php,config.php,database.php,routes.php四个文件 autoload.php中将$autoload['language'] = array()修改为$autoload['language'] = array('allview')。 config.php中将$config['base_url'] = 'http://localhost:80/web';修改为$config['base_url'] = '你的访问路径'; $config['language'] = 'en_US'修改完 $config['language'] = '你的语言类型';注:数据库的语言选择应与此处语言保持一致。 database.php将你的数据库信息在此文件中进行配置,将数据库的配置
$db['default'] ['hostname'] = 'HOSTNAME'; $db['default'] ['username'] = ‘USERNAME’; $db['default'] ['password'] = ‘PASSWORD’; $db['default'] ['database'] = ‘DATABASE’; $db['default'] ['dbprefix'] = ‘DBPREFIX’;
改为你的数据库配置,如 :
$db['default'] ['hostname'] = 'localhost'; $db['default'] ['username'] = ‘cobub’; $db['default'] ['password'] = ‘cobub’; $db['default'] ['database'] = ‘cobubrazor ‘; $db['default'] ['dbprefix'] = ‘razor_’;
数据仓库的配置
$db['dw'] ['hostname'] = 'DWHOSTNAME'; $db['dw'] ['username'] = ‘DWUSERNAME’; $db['dw'] ['password'] = ‘DWPASSWORD’; $db['dw'] ['database'] = ‘DWDATABASE’; $db['dw'] ['dbdriver'] = ‘mysql’; $db['dw'] ['dbprefix'] = ‘DWDBPREFIX’;
改为你的数据仓库配置,如
$db['dw'] ['hostname'] = 'localhost'; $db['dw'] ['username'] = ‘cobub’; $db['dw'] ['password'] = ‘cobub’; $db['dw'] ['database'] = ‘cobubrazor ‘; $db['dw'] ['dbdriver'] = ‘mysql’; $db['dw'] ['dbprefix'] = ‘razordw_’;
• routes.php:将$route['default_controller'] = “install/install”修改为$route['default_controller'] = “report/console”