在執行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.
問題解決!