禅道远程连接数据库错误

来源:互联网 发布:围棋吃子软件 编辑:程序博客网 时间:2024/06/07 13:11

使用Navicat连接服务器上禅道的Mysql服务器,显示连接失败。
解决步骤:
1、修改my.cnf文件,屏蔽bind-address=127.0.0.1,并查看port
2、修改root权限

$./opt/zentao/bin/mysql -uroot -p123456> use xx数据库名字; //选择数据库> grant all privileges on *.* to 'root'@'%'  identified by '123456' with grant option; > flush privileges;

3、重启禅道

/opt/zentao/zbox restart