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.


 问题解决!

你可能感兴趣的:(创建,opensips)