我在浏览器中遇到错误的CDash cannot connect to the database。我检查了配置,我认为CDash正在自己寻找Postgres服务器。然而,我的gitlab服务正在使用它自己的位于/opt/gitlab/embedded/bin/psql的内置psql服务器
我不知道如何更新CDash config.php以允许它访问嵌入式Postgres数据库。
我也不确定如何从终端连接用户登录,就像我们在mysql中所做的那样,即mysql -u cdash_user -p
以下是config.local.php文件的一部分
// Hostname of the database server
$CDASH_DB_HOST = 'localhost';
// Login for database access
$CDASH_DB_LOGIN = 'cdash';
// Port for the database (leave empty to use default)
$CDASH_DB_PORT = '';
// Password for database access
$CDASH_DB_PASS = '*******';
// Name of the database
$CDASH_DB_NAME = 'cdash';
// Database type (empty means mysql)
$CDASH_DB_TYPE = 'pgsql';发布于 2019-07-18 16:53:23
您需要执行以下操作才能使其正常工作打开文件
vim /var/opt/gitlab/postgresql/data/postgresql.conf更改线路
listen_addresses = ''至
listen_addresses = '127.0.0.1'保存更改并重新启动gitlab
gitlab-ctl restart postgresql检查postgres正在运行的端口
sudo netstat -plunt |grep postgres我必须这样做,因为在gitlab更新到版本12.2.0之后,cdash停止工作。
https://stackoverflow.com/questions/53747880
复制相似问题