1.修改数据库密码
#/opt/zbox/bin/mysql -uroot -p
Enter password: 【输入原来的密码】
#mysql>SET password for ‘root’@‘localhost’ =password(‘newpassword’);
(注意,这个命令是错的SET password for ‘root’@‘%’=password('newpassword);)
mysql> flush privileges;
mysql> select user,host,password from mysql.user;
mysql> exit;
2.更改/opt/zbox/app/zentao/config/my.php 中的密码设置
[root@localhost config]# cd /opt/zbox/app/zentao/config
[root@localhost config]#vi my.php