首页 > 教程 > Drupal 7多站点共用同一个数据库配置图文教程

Drupal 7多站点共用同一个数据库配置图文教程

时间:2016-06-06 | 来源:互联网 | 阅读:139

话题: CMS教程

'username' => 'root',

'password' => '',

'host' => 'localhost',

'port' => '',

'driver' => 'mysql',

'prefix' => 'main_',

),

),

);

//sitesblog.example.comsettings.php配置如下

$databases = array (

'default' =>

array (

'default' =>

array (

'database' => 'drupal',

'username' => 'root',

'password' => '',

'host' => 'localhost',

'port' => '',

'driver' => 'mysql',

'prefix' => array(

'default' => 'blog_',

'users' => 'main_',

'sessions' => 'main_',

'role' => 'main_',

'authmap' => 'main_',

),

),


),



湘ICP备2022002427号-10湘公网安备:43070202000427号
© 2013~2019 haote.com 好特网