openshift mysql没有到主机的路由

ycggw6v2  于 2021-06-24  发布在  Mysql
关注(0)|答案(0)|浏览(225)

我是openshift的新手,但上个月我在openshift上部署了一个项目,它运行得很好,但现在我无法将我的phpmyadmin pod与mysql连接起来,它不断地给我错误,没有到主机的路径。
这是我的mysql服务yaml apiVersion: v1 kind: Service metadata: annotations: template.openshift.io/expose-uri: 'mysql://{.spec.clusterIP}:{.spec.ports[?(.name=="mysql")].port}' creationTimestamp: '2018-04-26T07:55:22Z' labels: app: mysql-persistent template: mysql-persistent-template name: mysql namespace: qrattendfirst resourceVersion: '2207628942' selfLink: /api/v1/namespaces/qrattendfirst/services/mysql uid: 2bb4db5e-4927-11e8-a6d6-0ab8769191d3 spec: clusterIP: 172.30.125.169 ports: - name: mysql port: 3306 protocol: TCP targetPort: 3306 selector: name: mysql sessionAffinity: None type: ClusterIP status: loadBalancer: {} 这是我在phpmyadmin的config.inc.php中的设置

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'mysql';
$cfg['Servers'][$i]['port'] = '3306';

$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;

完整回购请访问github.com/srikantkarnani/phpmyadmin
这是我不断得到的错误,在mysql日志中也没有任何更改

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题