Asterisk RealTime 更新錯誤

<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">今天重新搭建了套測試環境,搭建完成後測試過程中出現RealTime表更新錯誤</span>

[Sep 13 14:24:28] WARNING[16502]: res_config_mysql.c:635 update_mysql: MySQL RealTime: Failed to update database: Incorrect integer value: '' for column 'port' at row 1

查找資料得出原因是mysql數據庫安全模式導致的,可以通過調整安全模式修復此問題

修改mysql  my.ini文件

# Set the SQL mode to strict
sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”

改爲

# Set the SQL mode to strict
sql-mode=”NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章