已解决 Database connect failed.SQLSTATE[HY000] [2002] 无效的参数

源码安装报错

Warning: PDO::__construct() [ pdo.--construct]: [2002] 无效的参数 (trying to connect via unix://) in /opt/lampp/htdocs/zentaopms/module/install/model.php on line 222

var config={"webRoot":"\/zentaopms\/www\/","cookieLife":30,"requestType":"GET","pathType":"clean","requestFix":"-","moduleVar":"m","methodVar":"f","viewVar":"t","defaultView":"html","themeRoot":"\/zentaopms\/www\/theme\/","currentModule":"install","currentMethod":"step3","clientLang":"en","requiredFields":"","lblShowAll":"++ Show All ++","lblHideClosed":"-- Hide Closed--","submitting":"Saving...","save":"Save","router":"\/zentaopms\/www\/install.php"}.ok{background:green; color:white}.fail{background:red; color:white}body{background:white}caption, th, td {padding:10px; font-size:16px}loadFixedCSS();
 
禅道版本 1.4 源码包
操作系统 RHEL
客户端浏览器 IE8

提问者: chp 悬赏: 5 日期: 2011-01-10 15:29:01 答案:1 点击:12953
备注

Warning: PDO::__construct() [ pdo.--construct]: [2002] 无效的参数 (trying to connect via unix://) in /opt/lampp/htdocs/zentaopms/module/install/model.php on line 222

设置备注
答案列表
2011/01/10
数据库参数试试127.0.0.1,不要用localhhost