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

phpcms system failed to connect to mysql

王林
Release: 2019-11-05 14:09:49
Original
2921 people have browsed it

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())
Copy after login

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

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template