zblogphp数据库配置文件位置是:zblog安装目录\zb_users\c_option.php
文件代码如下
<?php
return array (
'ZC_DATABASE_TYPE' => 'mysqli',
'ZC_SQLITE_NAME' => '',
'ZC_SQLITE_PRE' => 'zbp_',
'ZC_MYSQL_SERVER' => '127.0.0.1', //数据库主机地址或IP
'ZC_MYSQL_USERNAME' => 'ytecn', //数据库帐号
'ZC_MYSQL_PASSWORD' => 'tJyGzREnzTR3ierA', //数据库密码
'ZC_MYSQL_NAME' => 'ytecn', //数据库名称
'ZC_MYSQL_CHARSET' => 'utf8mb4',
'ZC_MYSQL_COLLATE' => 'utf8mb4_general_ci',
'ZC_MYSQL_PRE' => 'zbp_', //安装时自定义数据库表前缀
'ZC_MYSQL_ENGINE' => 'MyISAM',
'ZC_MYSQL_PORT' => '3306',
'ZC_MYSQL_PERSISTENT' => false,
'ZC_PGSQL_SERVER' => 'localhost',
'ZC_PGSQL_USERNAME' => 'postgres',
'ZC_PGSQL_PASSWORD' => '',
'ZC_PGSQL_NAME' => '',
'ZC_PGSQL_CHARSET' => 'utf8',
'ZC_PGSQL_PRE' => 'zbp_',
'ZC_PGSQL_PORT' => '5432',
'ZC_PGSQL_PERSISTENT' => false,
);
ZC_MYSQL_SERVER 数据库主机地址或IP
ZC_MYSQL_USERNAME 数据库帐号
ZC_MYSQL_PASSWORD 数据库密码
ZC_MYSQL_NAME 数据库名称