我正在尝试使用MySQL插件设置Kamailio。我按如下方式设置配置:
## your SIP domain
SIP_DOMAIN=example.org
DBENGINE=MYSQL
## database host
DBHOST=localhost
## database host
DBPORT=3306
当我运行kamdbctl create
时,我得到以下内容:
INFO: test server charset
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
/usr/lib/x86_64-linux-gnu/kamailio//kamctl/kamdbctl.mysql: line 117: [: =: unary operator expected
INFO: creating database kamailio ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR: Creating database kamailio failed!
答案 0 :(得分:0)
错误消息表明没有正确引入mysql用户'root'的密码,或者没有在具有完全权限的mysql服务器中创建用户'root'。