opensips建立資料庫時報database engine not specified錯誤的解決

clvn發表於2014-06-22

在執行opensipsdbctl create報下列錯誤

root@opensips.clvn.com.cn:~# opensipsdbctl create
ERROR: database engine not specified, please setup one in the config script

 

解決方法:

1.檢視配置檔案

root@opensips.clvn.com.cn:~# cd /usr/local/opensips/etc/
root@opensips.clvn.com.cn:/usr/local/opensips/etc# cat opensips/opensipsctlrc | grep DBENGINE
DBENGINE=MYSQL

發現裡面指定了資料庫為MYSQL

 

2.進入下列目錄執行命令
root@opensips.clvn.com.cn:~# cd /usr/local/opensips/sbin/
root@opensips.clvn.com.cn:/usr/local/opensips/sbin# ./opensipsdbctl create
MySQL password for root:
INFO: test server charset
INFO: creating database opensips ...
INFO: Core OpenSIPS tables succesfully created.
Install presence related tables? (y/n): y 
INFO: creating presence tables into opensips ...
INFO: Presence tables succesfully created.
Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist b2b registrant call_center? (y/n): y
INFO: creating extra tables into opensips ...
INFO: Extra tables succesfully created.


 問題解決!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12082464/viewspace-1191216/,如需轉載,請註明出處,否則將追究法律責任。

相關文章