opensips在创建数据库时报错

在执行opensipsdbctl create时出现下列错误

[root@localhost ~]# 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

解决方法:

查看mysql软件包是否安装

[root@localhost ~]# rpm -q mysql
package mysql is not installed

安装该软件包
[root@localhost ~]# yum -y install mysql

问题解决

 

 

 

你可能感兴趣的:(opensips)