1. 程式人生 > >禪道遠端連線資料庫錯誤

禪道遠端連線資料庫錯誤

使用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