Home >Backend Development >PHP Tutorial >Regarding onethink's migration site, a database error occurred, onethink database_PHP tutorial
In order to support domestic production, I used onethink to build my own site ( Template World: www.templatesy.com ) , it has been used so far, although it has encountered many difficulties and many bugs, but it has finally been built.
During a recent local upload process, it actually caused the backend to be unable to log in and everything related to the user table was invalid!
I looked for all possible causes of the error, including coding, BOM, etc., but to no avail.
After 2 days of debugging, I finally discovered that in addition to the config.php for database configuration under ApplicationcommonConf, there is also a config.php for database configuration under the ApplicationUserConf directory in the root directory! Changing this to the server's data configuration finally restored the website.
There must be some other considerations that led the onethink team to set up two database configuration files. It is also the reason why I did not read the documentation thoroughly.
Template world: www.templatesy.com