Home >Backend Development >PHP Tutorial >Regarding onethink's migration site, a database error occurred, onethink database_PHP tutorial

Regarding onethink's migration site, a database error occurred, onethink database_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:53:21761browse

Regarding onethink’s migration site, a database error occurred, onethink database

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1001469.htmlTechArticle Regarding onethink’s migration site, a database error occurred. In order to support domestic onethink database, I used onethink to build my own Site (Template World: www.templatesy.com)...
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