DB_NSN的写法

WBOY
WBOYOriginal
2016-06-23 13:36:07942browse

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


回复讨论(解决方案)

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

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

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


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