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