REDISD IP address cannot be set 127.0.0.1

Source: Internet
Author: User
### Error Updating database. Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:INSERT command denied to user ' kj ' @ ' im.chbjt.com ' For table ' Blood_sugar '
### the error may involve com.kj.mybatis.mapper.bloodsugarmapper.insertuserbloodsugar-inline
### The error occurred while setting parameters
### Sql:insert into Blood_sugar (Local_date, User_phone, Bl_sugar_val, Eval_result, Result_flag) VALUES (?,?,?,?,?)
### Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:INSERT command denied to user ' kj ' @ ' im.chbjt.com ' For table ' Blood_sugar '
; Bad SQL Grammar []; Nested exception is Com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:INSERT command denied to user ' kj ' @ ' im.chbjt.com ' for table ' Blood_sugar '
At Org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate ( sqlexceptionsubclasstranslator.java:94)
At Org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate ( ABSTRACTFALLBACKSQLEXCEPTIONTRANSLATOR.JAVA:72)
At Org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate ( ABSTRACTFALLBACKSQLEXCEPTIONTRANSLATOR.JAVA:80)
At Org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible (Mybatisexceptiontranslator.java : 71)
At Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (sqlsessiontemplate.java:365)
At $Proxy 9.insert (Unknown Source)
At Org.mybatis.spring.SqlSessionTemplate.insert (sqlsessiontemplate.java:237)
At Org.apache.ibatis.binding.MapperMethod.execute (mappermethod.java:79)
At Org.apache.ibatis.binding.MapperProxy.invoke (mapperproxy.java:40)
At $Proxy 12.insertUserBloodSugar (Unknown Source)
At Com.kj.dao.DataDao.sugarSave (datadao.java:36)

At Com.kj.dao.thread.BloodSugarDaoThread.run (bloodsugarthread.java:46)



Workaround: The REDIS,IP address of the application on the Web server connecting to this computer cannot be set to 127.0.0.1, to be set to the actual IP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.