Home > Backend Development > PHP Tutorial > thinkphp 连接mysql 有关问题

thinkphp 连接mysql 有关问题

WBOY
Release: 2016-06-13 12:40:49
Original
833 people have browsed it

thinkphp 连接mysql 问题

'DB_TYPE'               => 'mysql',     // 数据库类型<br />
	'DB_HOST'               => 'localhost', // 服务器地址<br />
	'DB_NAME'               => 'test',          // 数据库名<br />
	'DB_USER'               => 'root',      // 用户名<br />
	'DB_PWD'                => '123456',          // 密码<br />
	'DB_PORT'               => 3306,        // 端口<br />
	'DB_PREFIX'             => 'think_',    // 数据库表前缀<br />
	'DB_SUFFIX'             => '',          // 数据库表后缀<br />
    'DB_FIELDTYPE_CHECK'    => false,       // 是否进行字段类型检查<br />
    'DB_FIELDS_CACHE'       => true,        // 启用字段缓存<br />
    'DB_CHARSET'            => 'utf8',      // 数据库编码默认采用utf8<br />
    'DB_DEPLOY_TYPE'        => 0, // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)<br />
    'DB_RW_SEPARATE'        => false,       // 数据库读写是否分离 主从式有效
Copy after login

密码没错啊
怎么提示
系统发生错误 
您可以选择 [ 重试 ] [ 返回 ] 或者 [ 回到首页 ]
[ 错误信息 ]

Access denied for user 'root'@'localhost' (using password: NO)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template