Home>Article>CMS Tutorial> phpcms system failed to connect to mysql

phpcms system failed to connect to mysql

王林
王林 Original
2019-11-05 14:09:49 2724browse

phpcms system failed to connect to mysql

Reason for failure:

phpcms v9 installer code does not detect special characters (such as: &$^!@#) in the submitted password. Perform escape processing.

Solution:

1. Modify install/step5.tpl.php 127 behavior:

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

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

var dbpw = escape('');

Recommended tutorial:phpcms tutorial

The above is the detailed content of phpcms system failed to connect to mysql. 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