opensips創建數據庫時報database engine not specified錯誤的解決

在執行opensipsdbctl create報下列錯誤

[email protected]:~# opensipsdbctl create
ERROR: database engine not specified, please setup one in the config script

 

解決方法:

1.查看配置文件

[email protected]:~# cd /usr/local/opensips/etc/
[email protected]:/usr/local/opensips/etc# cat opensips/opensipsctlrc | grep DBENGINE
DBENGINE=MYSQL

發現裏面指定了數據庫爲MYSQL

 

2.進入下列目錄執行命令
[email protected]:~# cd /usr/local/opensips/sbin/
[email protected]:/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.


 問題解決!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章