ThinkCMF5安装后的生成的数据库配置文件在data/conf/database.php;

<?php

return [
    // 数据库类型
    'type'           => 'mysql',
    // 服务器地址
    'hostname'       => 'localhost',
    // 数据库名
    'database'       => 'thinkcmf5',
    // 用户名
    'username'       => 'root',
    // 密码
    'password'       => '你的数据库密码',
    // 端口
    'hostport'       => '3306',
    // 数据库编码默认采用utf8
    'charset'        => 'utf8mb4',
    // 数据库表前缀
    'prefix'         => 'cmf_',
    "authcode" => '你的加密码',
];

results matching ""

    No results matching ""