首页 > 代码库 > opensips在创建数据库时报错

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

问题解决

 

 

 

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1563111

opensips在创建数据库时报错