OneThink database connection failed, always prompt wrong password solution, onethink database connection
The oneThink database configuration file is \ Application \ Common \ Conf \ config. in php, it is reasonable to modify the database configuration here so that the connection can be reconnected. However, no matter how I change the password, it is always different from what I set, I found a lot of information on the Internet that could not solve my problem, but the word "cache" reminded me that it was correct to print the configuration information after I deleted all the cached directory files, however, after the code is commented out, the previous configuration information is displayed, and the solution is found in the portal file, it turns out that oneThink caches the database connection username and password entered during previous installation, so it cannot be connected, and it is decisive in \ Application \ User \ Conf \ config. PHP file modify define ('uc _ DB_DSN ', 'mysqli: // root: 123456@127.0.0.1: 3306/onethink'); OK, everything runs normally !!! (Note: The 123456 password after root is the modified password)