opensips执行opensipsdbctl create时报错

在执行opensipsdbctl create时报下列错误

[root@opensips opensips]# opensipsdbctl create
MySQL password for root:
INFO: test server charset
/usr/lib64/opensips/opensipsctl/opensipsdbctl.mysql: line 105: mysql: command not found
/usr/lib64/opensips/opensipsctl/opensipsdbctl.mysql: line 106: mysql: command not found

WARNING: Failed to get the available and used character sets

 

解决方法:

root@opensips opensips]# yum -y install mysql

重新执行该命令

[root@opensips opensips]# 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)