Troubleshooting:oVirt-engine

問題:執行./create_db_devel.sh -u postgres建立數據庫時出錯git

描述:sql

[root@localhost dbscripts]# ./create_db_devel.sh -u postgres
/home/wqx/tf-git-repo/ovirt-engine-local/backend/manager/dbscripts /home/wqx/tf-git-repo/ovirt-engine-local/backend/manager/dbscripts
Running original create_db script...
/home/wqx/tf-git-repo/ovirt-engine-local/backend/manager/dbscripts /home/wqx/tf-git-repo/ovirt-engine-local/backend/manager/dbscripts
Creating the database: engine
dropdb: could not connect to database postgres: could not connect to server: Connection refused
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?
createdb: could not connect to database postgres: could not connect to server: Connection refused
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 5432?
Failed to create database engine
/home/wqx/tf-git-repo/ovirt-engine-local/backend/manager/dbscripts
Failed to create database engine
/home/wqx/tf-git-repo/ovirt-engine-local/backend/manager/dbscripts

解決方法:重啓數據庫 service postgresql restart數據庫

本站公眾號
   歡迎關注本站公眾號,獲取更多信息