DB_NSN的写法

WBOY
Release: 2016-06-23 13:36:07
Original
887 people have browsed it

'DB_DSN'=>'mysql://root:@localhost:3306/thinkphp', 有密码怎么写,比如root的密码是12345


回复讨论(解决方案)

没有任何一款软件会把用户名和口令写在 dsn 中的

试试
'DB_DSN'=>'mysql://root:12345@localhost:3306/thinkphp',

没有任何一款软件会把用户名和口令写在 dsn 中的


你就和缺心眼似的!
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