<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”