一段时间没用,打开登陆页面后白屏已解决 悬赏15积分
去读取了/opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/tmp/log中的错误文件 显示
<?php
die();
?>
07:23:52 ERROR: SQLSTATE[HY000] [1049] Unknown database 'zentao' in /opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/framework/router.class.php on line 1506, last called by /opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/framework/router.class.php on line 1468 through function connectByPDO.
in /opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/framework/router.class.php on line 1550 when visiting
07:25:26 ERROR: SQLSTATE[HY000] [1049] Unknown database 'zentao' in /opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/framework/router.class.php on line 1506, last called by /opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/framework/router.class.php on line 1468 through function connectByPDO.
in /opt/lampp/htdocs/ZenTaoPMS.7.0.stable/zentaopms/framework/router.class.php on line 1550 when visiting
求解这个是什么问题?
禅道版本:7.1.stable
安装包类型:Linux安装包
操作系统:Other
客户端浏览器:IE9
石洋洋
2015/03/24
登录数据库看一下 zentao数据库是否存在。报错是找不到zentao数据库,如果数据库改名了,需要修改zentaopms/config/my.php 中连接的数据库名称。
回复
|
查看mysql进程如下
[root@localhost ~]# ps -ef |grep mysqld
root 3139 1 0 14:25 pts/1 00:00:00 /bin/sh /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql --pid-file=/opt/lampp/var/mysql/localhost.localdomain.pidmysql 3528 3139 0 14:25 pts/1 00:00:00 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --plugin-dir=/opt/lampp/lib/mysql/plugin/ --user=mysql --log-error=/opt/lampp/var/mysql/localhost.localdomain.err --pid-file=/opt/lampp/var/mysql/localhost.localdomain.pid --socket=/opt/lampp/var/mysql/mysql.sock --port=3306
root 3688 377 0 14:35 pts/1 00:00:00 grep mysqld