search
HomeCMS TutorialPHPCMSWhat should I do if the phpcms v9 installation cannot connect to the database?

What should I do if the phpcms v9 installation cannot connect to the database?

What should I do if the phpcms v9 installation cannot connect to the database?

phpcms v9 installation prompts "database connection error" solution

Description:

I am building phpcms today v9 program, the installation program keeps prompting "Unable to connect to the database server, please check the configuration" until the fifth step. It feels very strange. My server configuration is correct. After entering the correct account and password several times, it still prompts that it cannot connect. . So I searched for it and finally solved it. Now I share it. I hope it will be useful to you.

The problem is as shown in the picture:

What should I do if the phpcms v9 installation cannot connect to the database?

Reason:

phpcms v9 installer code against the submitted password Special characters (such as &$^!@#) are not escaped.

Solution:

Modify install/step5.tpl.php 127 behavior:

'&dbpw='+escape($('#dbpw').val())

2. Modify install/step6.tpl.php 55 Behavior:

var
dbpw = escape(&#39;<?=$dbpw?>&#39;);


The above is the detailed content of What should I do if the phpcms v9 installation cannot connect to the database?. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.