Solve the "Database Server Error\\" error in the Typecho migration server

888u

Last update at :2024-06-18,Edit by888u

In terms of convenience and resource consumption, we choose Typecho and ZBlog PHP programs which are better. Although the update frequency and related plug-ins and themes of the two are not particularly rich, the basic log document functions are still sufficient. If you choose a program like WordPress, although it has rich functions and themes, it does require a little bit of technology and the ability to mine documents if you need to use it proficiently, because there will be various problems that need to be solved later.

This problem was encountered by Snail a few days ago. When migrating a client's corporate website, it was originally installed in a virtual host. Now it needs to be unified into the VPS host in the LNMP environment. According to the normal combination, PHP7.0, Mysql, Nginx and other software support are installed.

Import the database, website files and modify the database link normally. After detecting that the parsing is normal, an accident occurs when opening the website, and a "Database Server Error\\" error occurs. What is certain is that there is indeed no problem with the database and files. It may be caused by a problem with the database version or PHP version.

I searched for related articles and mentioned that Typecho does not support PHP7.0 and the database engine needs to be modified to Pdo_Mysql.

We need to change the config.inc.php database link file in the typecho root directory to the location shown above, and replace Mysql with Pdo_Mysql. Then check if it's normal.

Finally, Snail can solve this problem by modifying it like this.

Recommended site searches: Instant IP server change, how to register a website, Zhengzhou server hosting, free virtual host in Hong Kong, virtual host rental local IP address inquiry and application for free space and domain name, la domain name, IP address search, free PHP space application ,

Solve the

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码