Home  >  Article  >  Backend Development  >  About onethink's migration site produces database error

About onethink's migration site produces database error

WBOY
WBOYOriginal
2016-08-08 09:24:19901browse

In order to support domestic production, I used onethink to build my own website ( Template World: www.templatesy.com ). So far, although I have encountered many difficulties and many bugs, I have finally managed to build it.

During a recent local upload process, the background failed to log in and everything related to the user table became 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

The above introduces the database error caused by onethink's migration site, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

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
Previous article:php bridge modeNext article:php bridge mode