Home > Backend Development > PHP Tutorial > OneThink database connection fails and always prompts that the password is incorrect. Solution

OneThink database connection fails and always prompts that the password is incorrect. Solution

WBOY
Release: 2016-07-29 09:15:38
Original
1213 people have browsed it
 <span> oneThink的数据库配置文件是\Application\Common\Conf\config.php,按理来说,在这里修改数据库配置应该就可以重新连接,可是不管我怎么修改密码总是和我设置的不一</span>
Copy after login
<span>致,在网上找到很多信息都没能解决我的问题,不过“缓存”这个词提醒了我,于是我把缓存目录文件全部删除后,打印配置信息是对的,但是注释打印代码后,又出现了以前的配置信</span>
Copy after login
<span>息,然后在入口文件找到了解决办法,<span>原来oneThink把以前安装时输入的数据库连接用户名和密码作了缓存所以怎么都连不上,果断在\Application\User\Conf\config.php文件中</span></span>
Copy after login
<span>修改define('UC_DB_DSN','mysqli://root:123456@127.0.0.1:3306/onethink');OK,一切运行正常!!!(注:root后面的123456为修改后的密码)</span>
Copy after login

The above introduces the solution to the oneThink database connection failure and always prompts that the password is incorrect, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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