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('<?=$dbpw?>');
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!