尝试在kamailio(/usr/local/sbin/kamdbctl create
)中运行用于创建mysql数据库的脚本时出现错误。错误: ERROR 1682 (HY000) at line 1: Native table 'performance_schema'.'session_variables' has the wrong structure usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql: line 111: [: =: unary operator expected \E[37;33mINFO: creating database kamailio ... ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
任何想法?
最佳答案
可以在以下gitlist中找到使用kamailio脚本解决此错误的方法:
https://github.com/klaussilveira/gitlist/issues/661